lloeki / ex-mode

Ex mode for Atom
MIT License
169 stars 59 forks source link

Running `:sort` on line selection includes extra line #202

Open sophiebits opened 6 years ago

sophiebits commented 6 years ago

If I have a file

d
c
b
a

and I select the middle two lines using V (visual line selection) then run :sort (really, :'<,'>sort), I end up with a file that reads "d a b c" and a resulting selection of three lines long. It should output "d b c a" with still two lines selected.

Atom: 1.21.1 Electron: 1.6.15 Chrome: 56.0.2924.87 Node: 7.4.0 ex-mode: 0.18.0 vim-mode-plus: 1.13.0 OS: macOS Sierra 10.12.6

(mistakenly opened as https://github.com/t9md/atom-vim-mode-plus/issues/935)

caspertsui commented 5 years ago

I got the same issue but only one extra line from bottom this means it sorts "c b a" when I selected "c b" for sorting.