Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running :sort on line selection includes extra line #202

Open
sophiebits opened this issue Oct 27, 2017 · 1 comment
Open

Running :sort on line selection includes extra line #202

sophiebits opened this issue Oct 27, 2017 · 1 comment

Comments

@sophiebits
Copy link

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 t9md/atom-vim-mode-plus#935)

@caspertsui
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants