Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 3.0.0-beta
-
None
Description
Setup:
- start Creator
- include a 30-line source file in a project and open it in the editor
- set up bookmarks at lines 10, 15, 20
- close Creator
Test 1
- move cursor at beginning of line 1 and insert <enter> 5 times (i.e. insert 5 blank lines at the beginning of the file)
- close Creator
- restart Creator
Result: the last bookmark is misplaced up by one line
Test 2
- start Creator
- select 5 [successive] lines from the file
- hit <copy> (i.e. copy the 5-line selection)
- move cursor at beginning of the file
- <paste> the 5 lines you previously copied (they will now be copied at the beginning of the file
- close Creator
- restart Creator
Result: the last of the three bookmarks is misplaced up by 5 lines
Test 3
- start Creator
- select the first 3 lines of the file
- hit <delete> (i.e. delete the 3-line selection all at once)
- restart Creator
Result: the last of the three bookmarks is misplaced down by 3 lines
Test 4
- start Creator
- select the first 3 lines of the file
- hit <delete> (i.e. delete the 3-line selection all at once)
- now, select and then <delete> the first line in the remaining file (this used to be line 4 before the 3-line deletion above)
- restart Creator
Result: the last of the three bookmarks is misplaced down by one line
PS:
My conclusion (for what it's worth): the last change in position that occurred to the last bookmark in a file before closing Creator does not get saved when Creator closes.
PPS:
I tried this with breakpoints also, but [it seems to me] that breakpoints do not exhibit this behavior
Attachments
For Gerrit Dashboard: QTCREATORBUG-10687 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
89129,2 | Bookmark: Save after internal changes | 3.2 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |