GNU nano - Bugs: bug #65301, a plain Replace macro can insert...
You are not allowed to post comments on this tracker with your current authentication level.
bug #65301: a plain Replace macro can insert unintended text when replayed in regex mode
Submitter: | correctmost <correctmost> | ||
Submitted: | Tue 13 Feb 2024 02:55:34 AM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Open |
Wed 14 Feb 2024 10:00:38 AM UTC, comment #3: |
Benno Schulenberg <bens> |
Tue 13 Feb 2024 08:20:33 PM UTC, comment #2:
|
correctmost <correctmost> |
Tue 13 Feb 2024 04:04:29 PM UTC, comment #1: The second recipe... Fantastic! Disco! :)
|
Benno Schulenberg <bens> |
Tue 13 Feb 2024 02:55:34 AM UTC, original submission:
I tested the following steps with `nano --ignore`.
|
correctmost <correctmost> |
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 |
---|---|---|---|---|---|
2024-02-14 | bens | Attached File | - | Added do-not-record-unbound-keystrokes.patch, #55694 | |
Status | None | Fixed | |||
Summary | nano inserts spurious character when replaying replace macro after bad-regex search | a plain Replace macro can insert unintended text when replayed in regex mode | |||
2024-02-13 | bens | Attached File | - | Added 0001-input-flush-the-keyboard-buffer-upon-any-kind-of-err.patch, #55691 | |
Assigned to | None | bens |
Powered by Savane 3.13-02a9.
Corresponding source code
Fixed in git, commit 77d74b5d, by emptying the keystroke buffer upon any kind of error.
(I've also considered the attached patch, that unrecords any unbound keystrokes, but... with some clever rebinding an infinite loop could still be constructed.)
As to making the Case and Regex toggles forgetful, you're probably right: many more people would be affected and annoyed by this change than that there are people that record Search macros and would be convenienced by having the toggles in a predictable state.
(file #55694)