GNU nano - Bugs: bug #60041, after certain edits, miscoloring...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60041: after certain edits, miscoloring will still occur
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Thu 11 Feb 2021 11:12:05 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 29 Apr 2022 07:32:44 AM UTC, comment #5: |
Benno Schulenberg <bens> |
Thu 17 Mar 2022 03:31:03 PM UTC, comment #4: Fixed in git, commit 15a0a129, by re-precalculating the multidata whenever the multiline stuff is disturbed AND is followed by more-than-a-screenful jump forward (erring on the side of caution when a screenful is not easy to determine, like when softwrapping). |
Benno Schulenberg <bens> |
Wed 16 Feb 2022 09:43:03 AM UTC, comment #3: (The unneeded redraws with the c syntax for every little edit were reported and fixed in bug #60072.) |
Benno Schulenberg <bens> |
Wed 17 Feb 2021 03:28:04 PM UTC, comment #2: When we would recalculate the multidata every time the multiline-matching situation of the current line has changed, it would mean that for C files every character typed or deleted in a line would cause of full recalculation: the c syntax contains a multiline coloring rule for preprocessor directives, and that rule's end regex matches almost every line. But almost no line will actually be marked as ENDSHERE, meaning that for almost all lines check_the_multis() will find a mismatch between multidata and current regex matches, leading to a full recalculation of the multidata. This is unacceptably wasteful.
|
Benno Schulenberg <bens> |
Thu 11 Feb 2021 11:47:53 AM UTC, comment #1: The only solution to this would be: to recalculate the multidata every time the multiline-matching situation of the current line has changed (or the matching situation of earlier lines, in case of a multiline paste or insert -- not just a large paste or insert, but any paste or insert that is more than one line).
|
Benno Schulenberg <bens> |
Thu 11 Feb 2021 11:12:05 AM UTC, original submission:
To reproduce, run:
Then type: ''' ^V ^V ^V '''
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-04-29 | bens | Open/Closed | Open | Closed | |
2022-03-17 | bens | Status | None | Fixed | |
2022-03-16 | bens | Assigned to | None | bens | |
2021-06-16 | bens | Assigned to | bens | None |
Powered by Savane 3.13-02a9.
Corresponding source code
Released in nano-6.3.