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 }}
Repository navigation
The cursor is re-positioned to beginning after content is updatedΒ #773
When NotepadNext window regains the focus, if the file content is updated, the cursor will be re-positioned to the beginning of the file instead of maintaining the previous position, which is a big disadvantage for analyzing log files.
Steps to Reproduce
Open a log file while it's continuously writted to
Click any other window to make NotepadNext window lose focus
Click NotepadNext window to regain focus, make sure it automatic update the content, cursor is re-positioned to beginning
Debug Information
Notepad Next v0.11.0.0
Build Date/Time: Apr 2 2025 02:10:30
Qt: 6.5.3
OS: Windows 11 Version 23H2
changed the title [-]The cursor be re-positioned to beginning after content is updated[/-][+]The cursor is re-positioned to beginning after content is updated[/+]on May 21, 2025
Cool, I'll give it a go this week.
Okay, so I'll get the current position and the view, and store them temporarily and once the file has been restored I'll set the position and the view.
Thank you!
Cool, I'll give it a go this week. Okay, so I'll get the current position and the view, ε store them temporarily and once the file has been restored I'll set the position and the view. Thank you!
Activity
[-]The cursor be re-positioned to beginning after content is updated[/-][+]The cursor is re-positioned to beginning after content is updated[/+]noobyogi0010 commentedon Jun 20, 2025
Hello,
I would like to take up this issue, if no one else has already taken it up.
Thanks!
dail8859 commentedon Jun 20, 2025
As far as I know nobody else is working on it.
My best guess is this function
NotepadNext/src/NotepadNext/ScintillaNext.cpp
Lines 324 to 353 in 4fc361a
noobyogi0010 commentedon Jun 23, 2025
Cool, I'll give it a go this week.
Okay, so I'll get the current position and the view, and store them temporarily and once the file has been restored I'll set the position and the view.
Thank you!
Remove TODO comment, because task is assigned in issue dail8859#773
lucienlmy commentedon Nov 9, 2025
Is there any progress?
Keep cursor position when file is reloaded
Keep cursor position when file is reloaded (#955)