Menu

Bug with the 'silent update' feature ?

rvl77
2008-01-03
2012-11-13
  • rvl77

    rvl77 - 2008-01-03

    Hello,

    Firstly, happy new year to everyone :)
    And a great thanks to Don for this so wonderful application !

    I think I found a bug with the 'silent update'
    - In the preferences, 'File Status Auto-Detection' part, 'Enable' and 'Update silently' are both checked
    - I open 2 files (A & B) with Notepad++
    - I focus on file B (the edit cursor has a different position on the 2 files)
    - I go on another application (or minimize NP++)
    - I update file A with notepad (or file A is automatically updated by an external application)
    - I come back to Notepad++
    - --> the position of the edition cursor on file B (which has the focus) is changed, and is placed at the same position it has on file A
    - --> the name of the windows takes the name of the updated file (file A), and not the focused one (file B)

    It seems that Notepad considers the updated file as it has the focus.
    If the file A has only 2 lines, the cursor on the file B will be set on the 1st or 2nd line
    If the file A has more lines than file B and has the cursor on the last lines, the cursor on file B will be set on the last line.

    This bug is quite annoying when you open a (often updated) log file with NP++, and try to edit another file on the same time.
    Each time you 'Alt+Tab', you lost the focus on the other file.

    I checked the previous version and this bug is here since v4.3
    On v4.2.2, only the name of the window was changed, the cursor was staying at its place.

    Futhermore, is there a way to add a shortcut to manually update the current doc, without any confirmation popup ?
    It could avoid to check & refresh all the opened document when you open several log files, that could take sometimes several seconds.

    Hope I'm clear, if not, do not hesitate to ask me more information :)

    And thanks again for your work

     
    • Nobody/Anonymous

      I'm having the same problem as described above.  I edit source code in one window, and keep a compiler-generated output listing open in another window.  Whenever I recompile my project, the cursor in my original source code gets moved to either the first line or the last line.  This doesn't happen when 'silent update' mode is not active.  I would like for the silent update to take place, but not move the cursor in other windows.

      Any insight into this difficulty would be appreciated.

      Thanks

       
    • Nobody/Anonymous

      Turn off the automatic file update check feature and manually reload each file?

       
    • rvl77

      rvl77 - 2008-01-04

      Thanks for the tip, but that means I have to go to File menu, select 'Reload from disk', click Yes ...

      This is why I asked if there is a way to add a shortcut to reload the current doc, without any confirmation popup.
      It could solve this problem in the meantime.
      But anyway, I checked again, and this feature move the edition cursor on the 1st line.

       
      • Nobody/Anonymous

        It was not clear to me that you were talking about the reload document menu option, since there is also a confirmation popup for the not-silent automatic update feature.

        I guess you could have simply phrased your question as: (how) can I create a shortcut for the reload document menu option?

        I did not say anything about moving the cursor.

         
    • rvl77

      rvl77 - 2008-01-18

      In fact, I was firstly talking about the bug I discovered with the silent update feature, when you open several docs with notepad++.

      To bypass this problem, I thought I could deactivate this feature, and reload manually the doc (from File \ reload from disk) when I have the focus on it (and so, I was asking if there was a way to create a shorcut to avoid going each time on the menu)
      But this manual reload put the cursor on the 1st line, and so it doesn't really useful as I don't want to loose the position I was on the doc.
      Hope it's more clear :)