GNU nano - Bugs: bug #52789, replacing does not include the...
You are not allowed to post comments on this tracker with your current authentication level.
bug #52789: replacing does not include the first character of a backward-marked region
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Tue 02 Jan 2018 05:02:15 PM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Tue 09 Jan 2018 04:14:16 PM UTC, comment #4: |
Benno Schulenberg <bens> |
Wed 03 Jan 2018 07:55:19 AM UTC, comment #3: Forgot to say: the offending commit was c88d7ce5. |
Benno Schulenberg <bens> |
Tue 02 Jan 2018 08:15:22 PM UTC, comment #2: Okay, I understand: it's because the begin_x is the real_current_x, and the latter is the starting point of the region when the region marked backwards, and it is the end point when marked forward. So only when the region is marked backwards can the condition (found == begin->data + begin_x) fire.
|
Benno Schulenberg <bens> |
Tue 02 Jan 2018 07:44:54 PM UTC, comment #1: I don't understand why it skips the first match when the region is marked backwards but not when it is marked forward. :| But attached patch seems to fix it. |
Benno Schulenberg <bens> |
Tue 02 Jan 2018 05:02:15 PM UTC, original submission:
To reproduce, run:
|
Benno Schulenberg <bens> |
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 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-01-30 | bens | Open/Closed | Open | Closed | |
2018-01-09 | bens | Status | In Progress | Fixed | |
2018-01-02 | bens | Attached File | - | Added dont-skip-when-in-region.patch, #42790 | |
Status | None | In Progress | |||
Assigned to | None | bens |
Powered by Savane 3.13-f8d8.
Corresponding source code
Fixed in git, commit e5440b39.