GNU nano - Bugs: bug #60012, editing a file with a lone triple...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60012: editing a file with a lone triple quote can lead to miscoloring
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Fri 05 Feb 2021 11:09:55 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 05 Feb 2021 04:41:59 PM UTC, comment #3: |
Benno Schulenberg <bens> |
Fri 05 Feb 2021 04:21:55 PM UTC, comment #2: (Nano gave no warning because the wrong 'syntax=...' gets overridden by the subsequent '-Ypython'. :| ) |
Benno Schulenberg <bens> |
Fri 05 Feb 2021 11:31:14 AM UTC, comment #1: Ugh. What I meant, of course, is:
(Why did nano not complain that there is no syntax with the name "syntax/python"?) |
Benno Schulenberg <bens> |
Fri 05 Feb 2021 11:09:55 AM UTC, original submission:
To reproduce, run:
Type: ''' ^S ^X
|
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-02-25 | bens | Open/Closed | Open | Closed | |
2021-02-05 | bens | Status | In Progress | Fixed |
Powered by Savane 3.13-4448.
Corresponding source code
Fixed in git, commit 7e04fea9, by setting the multidata of the end match immediately when the match is found.
In theory the multidata for the end match should also get set in the 'seek_an_end' part (there where the data of the current line gets set to WHOLELINE), but I cannot find a situation where this causes miscolorings.
Anyway: even now, with enough jumps and enough edits, things can still get miscolored, but that is something for a later report.