How to avoid scrolling to the top of the page when autosave or loosing focus?



  • Each time a file autosaves, I notice there’s a “refresh” where the document scrolls to the top of the page each time it autosaves, or more specifically when I click outside of NP++. Kinda annoying to have to scroll back to the end or to where the cursor was.

    Is this a setting I can disable?



  • @oroboros

    which feature do you use to autosave your documents?
    And which npp version (debug-info from ? menu)?

    Cheers
    Claudia



  • @Claudia-Frank It’s the “periodic backup” in the preferences. But I’m actually noticing it more when I change focus on another window. It doesn’t move the cursor (if I return focus to NPP and start typing, it’s in the right place), but the window scrolls up some 6 lines.

    Here’s what I’m doing:
    NPP is in windowed mode with enough lines to see the horizontal scrollbar. Position the cursor at the end of the last line, defocus by clicking on another program. NPP “refreshes” and scrolls up some 6 lines (i.e. the last 6 lines are hidden “below the fold”).

    Debug info below:
    Notepad++ v7.5.4 (32-bit)
    Build time : Jan 1 2018 - 01:47:45
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : AutoSave.dll ComparePlugin.dll CustomizeToolbar.dll DSpellCheck.dll DSpellCheck2.dll HTMLTag_unicode.dll ImgTag.dll MenuIcons.dll mimeTools.dll NotepadStarterPlugin.dll NppColumnSort.dll NppConverter.dll NppExport.dll NppFTP.dll NppTextFX.dll PluginManager.dll SpellChecker.dll Tidy2.dll



  • I do not observe the descript behaviour. Maybe one of the plugins is causing it. You may want to test this be starting N++ without plugins. See http://docs.notepad-plus-plus.org/index.php/Command_Line_Switches, so notepad++ -noPlugins should show you the plain n++ behaviour.


Log in to reply