You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Select-next scrolls to top of file on even occurrences #245
I use cmd-d with selected word and I expect the window to scroll to the next found occurrence -- but instead the window scrolls to top on the first select-next, then scrolls to the found word on the second select-next, then again to the top on the third and so on.
It occurs in any file I edit in Atom. I recorded an example on some fake data:
The steps I take:
Select a word
Hit cmd-d to select next occurrence
Hit cmd-d again few times to select following occurrences
If it was even selection (2nd, 4th, 6th, ...) -- the screen scrolls to the selected word
If it was odd selection (3rd, 5th, ...) -- the screen jumps to the beginning of the file
If I scroll down manually, I can see that the selection is being made properly
Edit:
Now I've discovered that the same scroll-jumping occurs when I use the vertical selection (ctrl+shift+arrowUp) -- so I'm not sure if the problem is being caused by find-and-replace package :-/
I was having the same issue and can confirm that what @smutnyleszek said fixes it: checking Use React Editor is a working workaround.
However, this bug probably shouldn't happen regardless of whether React Editor is enabled. It only started happening in recent versions of Atom. Perhaps there is a bug in atom or atom-shell and not find-and-replace?
Soon the react editor will be the default, and shortly after, the old editor will be pulled out completely. So we'd rather not expend extra effort fixing old editor bugs when we will just throw it away.
Activity
benogle commentedon Jul 7, 2014
I'm not understanding. Can you give me concrete steps to reproduce this? The text you were working with would be helpful. Or maybe a gif?
magicznyleszek commentedon Jul 8, 2014
It occurs in any file I edit in Atom. I recorded an example on some fake data:
The steps I take:
cmd-dto select next occurrencecmd-dagain few times to select following occurrencesEdit:
Now I've discovered that the same scroll-jumping occurs when I use the vertical selection (
ctrl+shift+arrowUp) -- so I'm not sure if the problem is being caused by find-and-replace package :-/magicznyleszek commentedon Jul 8, 2014
Managed to fix the issue by turning on
Use React Editorin Core Settings.chrisknepper commentedon Jul 8, 2014
I was having the same issue and can confirm that what @smutnyleszek said fixes it: checking
Use React Editoris a working workaround.However, this bug probably shouldn't happen regardless of whether React Editor is enabled. It only started happening in recent versions of Atom. Perhaps there is a bug in atom or atom-shell and not find-and-replace?
benogle commentedon Jul 8, 2014
Soon the react editor will be the default, and shortly after, the old editor will be pulled out completely. So we'd rather not expend extra effort fixing old editor bugs when we will just throw it away.
Only autoscroll in model when adding selection in React editors
nathansobo commentedon Jul 9, 2014
I went ahead and made the fix for the old editor as well. Thanks!