Use delete-region instead of kill-region in elm-sort-imports.
Consider the following sequence of commands:
kill some text in buffer A
save buffer A
switch to buffer B
yank text from kill-ring
Prior to this change, if a user had enabled elm-sort-imports-on-save, then when yanking text in step 4, they would not get the text killed in step 1, but rather the import list killed by elm-sort-imports.
Use
delete-region
instead ofkill-region
inelm-sort-imports
.Consider the following sequence of commands:
Prior to this change, if a user had enabled
elm-sort-imports-on-save
, then when yanking text in step 4, they would not get the text killed in step 1, but rather the import list killed byelm-sort-imports
.