Bookmarks are updated wrongly after pasting lines
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
Seems no simple way.
Re: Bookmarks are updated wrongly after pasting lines
If I insert just one line, the bookmark position updates correctly, but if I insert multiple lines, the bookmark shifts one line higher. This happens with the beta version (one .exe file) and the instance I'm already using.
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
look how I tried to reproduce it.
i have text with 3 bookmarks.
i try to insert such blocks above bookmarks:
1. single-line block
[ddd]
2. single line with newline at end
[ddd
]
3. 3-lines block with ending newline
[ddd
ddd
ddd
]
4. 3-lines block without ending newline
[ddd
ddd
d]
I paste at line start. and not at line start too.
cannot see the bug! give me your exact 'steps', please.
i have text with 3 bookmarks.
i try to insert such blocks above bookmarks:
1. single-line block
[ddd]
2. single line with newline at end
[ddd
]
3. 3-lines block with ending newline
[ddd
ddd
ddd
]
4. 3-lines block without ending newline
[ddd
ddd
d]
I paste at line start. and not at line start too.
cannot see the bug! give me your exact 'steps', please.
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
I mean I need exact sample document text (of fragment before the bookmark), exact contents of clipboard before pasting, and exact caret position.
-
- Posts: 2543
- Joined: 25.08.2021 18:15
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
hey, user. I fixed that issue now. will be in the next update (seems 1.223.0.x), pls wait.
Re: Bookmarks are updated wrongly after pasting lines
Fixed for CudaText 1.223.5.0, linux-x86_64-qt6, fpc 3.2.3
Thanks!
But no fix in https://cudatext.github.io/history.txt
Thanks!
But no fix in https://cudatext.github.io/history.txt
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
that 'bookmarks shift' fix was 'almost mentioned' in this line:
- fix: few regressions in 1.222.3 in reworked TextInsert method
- fix: few regressions in 1.222.3 in reworked TextInsert method
Re: Bookmarks are updated wrongly after pasting lines
Again the bookmark moved on 2 lines up for some reason
Recently updated to Cudatext 1.223.5.2, Linux-X86_64-QT6, FPC 3.2.3
Recently updated to Cudatext 1.223.5.2, Linux-X86_64-QT6, FPC 3.2.3
-
- Posts: 2543
- Joined: 25.08.2021 18:15
Re: Bookmarks are updated wrongly after pasting lines
please, write steps to repeat it.
can it be repeated on _clean_ Cud? (we had problem in Markdown_Editing plugin with bookmarks, solved it in plugin).
can it be repeated on _clean_ Cud? (we had problem in Markdown_Editing plugin with bookmarks, solved it in plugin).