Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

selecting with shift+v jumps strangely when scrolling with j/k when more than one screens worth of lines is selected #930

Closed
mngyuan opened this issue Dec 1, 2015 · 3 comments
Assignees

Comments

@mngyuan
Copy link

mngyuan commented Dec 1, 2015

Doesn't happen with selecting with v
Here's what the behavior looks like: gfy
gif

@maxbrunsfeld maxbrunsfeld self-assigned this Dec 2, 2015
@t9md
Copy link
Contributor

t9md commented Dec 2, 2015

@maxbrunsfeld Maybe same issue I tackled in my vim-mode-plus, hope this info helps.
t9md/atom-vim-mode-plus#23

@kcaze
Copy link

kcaze commented Dec 3, 2015

The offending line is here: https://github.com/atom/vim-mode/blob/master/lib/motions/general-motions.coffee#L63

Atom now has an autoscroll option that defaults to true for setBufferRange(). Setting the autoscroll option to false fixes this.

@ssfrr
Copy link
Contributor

ssfrr commented Dec 5, 2015

Thanks @kcaze. I just submitted a PR that followed your advice and it seems to work for me

maxbrunsfeld pushed a commit that referenced this issue Dec 5, 2015
fixes jumping with large line selections, fixes #930
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants