[cantfix] "Jumping" bookmark

Did you find any problems using this software? Please post here...
Locked
Andreas
Posts: 11
Joined: 10.12.2012 20:42

[cantfix] "Jumping" bookmark

Post by Andreas »

Under certain circumstances, bookmarks "jump". Steps to reproduce:

1. Set Options --> History --> Length of file state history to 50. Uncheck "Save caret position" and "Save encoding".
2. Create a new file and type in following content: line 1: "aaa ä", line 2: "aaa". (Note: line 1 must contain a non-ASCII character.)
3. Encoding --> Convert encoding to --> Unicode --> UTF-8, no BOM
4. Place the caret into the leftmost column of line 2.
5. Bookmarks --> Toggle bookmark.
6. Save the file.
7. Exit SynWrite.
8. Start SynWrite. As a result, the file will be loaded.

Expected result: The bookmark will be in line 2.
Actual result: The bookmark is in line 1.

Additional problem:

9. Place the caret into the leftmost column of line 2.
10. Type a character.

As a result, the bookmark will jump from line 1 to line 2.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Andreas
Posts: 11
Joined: 10.12.2012 20:42

Post by Andreas »

Okay, thanks. Let's hope that they will fix it.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

may do workarnd. Store line number only and restore bkmk as (0: LnNum) position. is OK to save in history Lnnum only?
Andreas
Posts: 11
Joined: 10.12.2012 20:42

Post by Andreas »

Alexey wrote:may do workarnd. Store line number only and restore bkmk as (0: LnNum) position. is OK to save in history Lnnum only?
That would be perfectly okay. In fact, I would be happy if bookmarks would always have column 0.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Not sure workaround helps. still jump. only on UTF8.
Andreas
Posts: 11
Joined: 10.12.2012 20:42

Post by Andreas »

Hmm, one more observation: The bookmark itself seems to be correct. After step 8, when you execute "Bookmarks --> Next bookmark", the caret will jump to the correct position (first column in line 2). What is actually wrong is only the drawing of the bookmark.
Steve
Posts: 1
Joined: 14.05.2014 23:01

Post by Steve »

I have the same problem with Jumping Bookmarks. But easier to replicate.

~~ BUG: When an external editor adds text above bookmarks and you are prompted to accept changes, it moves the bookmarks to new lines. Sometimes will put two bookmarks on same line.

PS: It is Okay to post a long list of Bugs and Wishes in a single post here on forum? Or would you rather get it by email?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Bookmk system is not good: bookmk position is stored as offset - must be line index. Not in plans to redo it (but when i do, issue will fix)
Locked