Page 1 of 1

[cantfix] "Jumping" bookmark

Posted: 04.03.2013 07:52
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.

Posted: 04.03.2013 10:34
by Alexey

Posted: 04.03.2013 10:47
by Andreas
Okay, thanks. Let's hope that they will fix it.

Posted: 04.03.2013 11:00
by Alexey
may do workarnd. Store line number only and restore bkmk as (0: LnNum) position. is OK to save in history Lnnum only?

Posted: 04.03.2013 11:08
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.

Posted: 04.03.2013 12:45
by Alexey
Not sure workaround helps. still jump. only on UTF8.

Posted: 04.03.2013 13:24
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.

Posted: 03.08.2015 02:12
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?

Posted: 03.08.2015 07:13
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)