-
Notifications
You must be signed in to change notification settings - Fork 34
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
Yedit: Reproducible crash related to auto indent #132
Comments
I got it to crash again and can now reproduce:
So it's likely related to auto indent. |
stianhoiland
changed the title
Yedit crash (while backspacing?)
Yedit: Reproducible crash related to auto indent
Dec 18, 2024
The about box says I'm using Edit 2.30. |
Thanks for the very thorough report, and sorry for taking a while to get back to it. The previous code was trying to remember the line that supplied the text to indent from, and use that when deleting an indent since it searched to earlier lines to find the amount of indent to keep. This logic conflicted with other code to truncate lines containing only auto indent and convert them to blank.
I think keeping the pointer to the line supplying the text is pointless, and it can navigate backwards from the current line. It makes sense to ignore blank lines when searching backwards anyway, and having done that, remembering the original source line is redundant. Commit c93f8e9.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yedit just crashed and I lost work (new, unsaved buffer). Is there a log somewhere? I think it happened while backspacing, possibly backspacing tabs.
The text was updated successfully, but these errors were encountered: