-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Top line index" is not restored from session for passive tabs #3112
Comments
Thanks for report- looks like a bug with initial scroll pos lost. |
Fixed for 'word wrap off' in user.json |
Made more fixing; will post beta tomorrow (GMT+3 morning) |
Beta updated; let's tets it. Not simple fix, need to test |
Something is happening with my installed plugins, with the beta upgrade they are not working anymore. I am still with more validations. |
cudatext.py file must be updated! it may crash python code, if not. |
I am testing now with a fresh install and after that I proceeded to install Favorites plugin, is not working, the same with Cuda-Ext both of @kvichans 😱 |
Yes; seems last Lazarus update is broken, confirmed |
Laz reverted to some old version, beta updated! |
Posted to new issue. |
@jairo-martinez let's test this? |
Issue found:
|
Good catch! beta fixed+updated. |
Let me test again, I found another issue painting lexer colors with Word-Wrap enabled but I will try to repro. |
(pls, to a new issue) |
|
do you mean that after restart, CT shows scroll position ONE line lower than needed? I saw that too, so confirm. |
@jairo-martinez If you reply 'yes' to above, let's find-- is it new issue (with that ONE line shift) or the old one? note: this issue needs "wrap_mode":1 |
Yes, it is related to "wrap_mode":1 I am repeating the test with a fresh install, let me a couple of minutes to found exactly the steps to repro. |
(let's post a new issue. the SUBJ is solved) |
Sure |
Question @Alexey-T, the functionality to move the scroll, it is using the last caret position or the last scroll position? |
caret position is not relative at all. caret can be at end-of-file. |
So? Because currently If I put the cursor at line 50, but I scroll the windows to see the line 400, after restart CT, CT shows me this last scroll position, is not moving to line 50, but the caret remains in the line 50. |
CT saves 2 numbers to session: caret pos, top line index |
Answered. |
Hi @Alexey-T
Testing with two opened files and saving the session:
If my last caret position is in the far-left tab when I close CT, if I start again CT, CT shows me this first tab and scrolls the window to show me that last line (as the previous picture). But if my last edited line is the second tab, when I restart CT, in this case CT shows me indeed the second tab but not scrolls to this caret position (I need to use directions keys or start the typing):
My feature request
is set CT to scroll to last caret in each file when I restart the editor.
The text was updated successfully, but these errors were encountered: