#273 On saving file (ctrl-s) the cursor jumps to another position

2.x
closed-fixed
Interface (114)
7
2014-01-07
2012-01-03
Neven Boyanov
No

After a file has been changed and after pressing Ctrl-S for saving it the cursor within the text editor will jump to another position.

It happens every time.

It is somehow related to the current position:
ex1.: if I'm editing the line 78 after ctrl-s it goes to the line 78
ex2.: from line 66 to line 38

Discussion

  • Neven Boyanov
    Neven Boyanov
    2012-01-03

    That bug appears on 2.6.0.353

     
    • assigned_to: ursmaeder --> pf18387
    • priority: 5 --> 7
    • status: open --> open-accepted
     
  • Neven Boyanov
    Neven Boyanov
    2012-01-03

    In addition, if I click anywhere in the text of that file, right after being saved, it will change the status of the file to "modified" - red icon on the tab and it will ask to save it if I attempt to close it.

    PS: I'm not sure if that's related to the same issue or should be another bug report.

     
    • status: open-accepted --> open-fixed
     
  • Hi Neven,

    Sorry about that. Big mistake with code-review. I had commented one instruction used to compute the length of a line. As a result, the position of the cursor became wrong. Fixed rev. >= 354

    Thanks for your report.

    Pierre.

     
    • status: open-fixed --> open-accepted
     
  • About the red icon. It is another bug - so I've reopened this ticket.
    I think the bug is due to a shifting in undo/redo lists.

     
  • Hello Neven,

    Status "modified" unduly displayed, is now fixed. Also, the bar of changes should work fine.

    Thanks again for your report.

    Pierre.

     
    • status: open-accepted --> open-fixed
     
  • Neven Boyanov
    Neven Boyanov
    2012-01-04

    Thanks Pierre, for fixing it so quickly.
    I downloaded and installed the newer version and everything seems to work fine.
    Neven.

     
  • You're welcome, Neven ; and sorry for these bugs.
    Pierre.

     
    • status: open-fixed --> pending-fixed
     
    • status: pending-fixed --> closed-fixed
    • Group: --> 2.x