Menu

#1395 Current position lost when switching buffer

Bug
closed-fixed
SciTE (663)
3
2025-06-08
2012-07-28
No

SciTE 3.2.1 on Windows: In SciTEGlobal.properties, I've defined buffers=100. When I open two files and switching from buffer 1 to buffer 2 and switching back from buffer 2 to buffer 1, then the current position of the buffer 1 is lost and SciTE scrolls automatically the buffer to another position.

This occurs only when the current position was near the end of the buffer and when I use the Wrap option on files with long lines.

Related

Bugs: #1921

Discussion

  • Neil Hodgson

    Neil Hodgson - 2012-07-28
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2012-07-28

    Wrapping is a background task so will not have reached the end of the file when the scroll is attempted.

    I am unlikely to work on this.

     
  • Neil Hodgson

    Neil Hodgson - 2012-07-28
    • priority: 5 --> 3
     
  • Philippe Berthault

    It seems this problem is exactly the same as reported in bug #3543212 so you can close it as a duplicate of #3543212.

    I've tried with older versions of SciTE (3.1.0 and 3.0.4) and this problem already exists in these older versions.

    Best regards.

     
  • Neil Hodgson

    Neil Hodgson - 2012-07-29

    #3543212 was really a problem in Notepad++ whereas this one in in SciTE so I'll leave it open.

     
  • Neil Hodgson

    Neil Hodgson - 2012-07-29
    • status: open --> open-accepted
     
  • Eric Promislow

    Eric Promislow - 2013-04-18

    This looks like a likely cause of Komodo bugs
    http://bugs.activestate.com/show_bug.cgi?id=98630 and
    http://bugs.activestate.com/show_bug.cgi?id=98716

    We have very little application-level code that modifies
    XOffset and FirstVisibleLine apart from when buffers are
    initialized, and I tried tracking all mods to Editor.xOffset
    in Editor.cxx, and saw nothing.

     
    • Neil Hodgson

      Neil Hodgson - 2013-04-18

      This bug does not appear to be related to the bugs referenced from Komodo. This bug is about vertical positioning with word wrap. The referenced bugs are about horizontal positioning with word wrap off.

       

      Last edit: Neil Hodgson 2013-04-18
  • Eric Promislow

    Eric Promislow - 2013-04-24

    True, I'll create a new bug on this.

     
  • Neil Hodgson

    Neil Hodgson - 2025-05-31
    • status: open-accepted --> open-fixed
    • Group: --> Bug
     
  • Neil Hodgson

    Neil Hodgson - 2025-05-31

    Improved with [8ac468].

     

    Related

    Commit: [8ac468]

  • Neil Hodgson

    Neil Hodgson - 2025-06-08
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB