GNU nano - Bugs: bug #57931, filtering an empty region filters...
You are not allowed to post comments on this tracker with your current authentication level.
bug #57931: filtering an empty region filters the whole buffer
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sun 01 Mar 2020 02:53:33 PM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Mon 02 Mar 2020 12:43:00 PM UTC, comment #3: |
Benno Schulenberg <bens> |
Mon 02 Mar 2020 12:32:04 PM UTC, comment #2: No additional variable is needed. The send_data() routines should always simply send what is in the cutbuffer. This will be either the previously marked region (whether or not it was zero characters) or the entire previous contents of the buffer. That is exactly what is needed. |
Benno Schulenberg <bens> |
Sun 01 Mar 2020 06:58:45 PM UTC, comment #1: The problem is that the call of send_data() checks for 'cutbuffer != NULL'. But the cutbuffer may also be NULL when zero characters were marked. :| An additional variable is needed to remember whether the mark was set. |
Benno Schulenberg <bens> |
Sun 01 Mar 2020 02:53:33 PM UTC, original submission:
To reproduce, run 'src/nano --ignore +44 README'.
|
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 |
---|---|---|---|---|---|
2020-03-25 | bens | Open/Closed | Open | Closed | |
2020-03-02 | bens | Status | In Progress | Fixed | |
2020-03-01 | bens | Status | None | In Progress | |
Assigned to | None | bens |
Powered by Savane 3.13-f8d8.
Corresponding source code
Fixed in git, commit 477a9b33.