GNU nano - Patches: patch #8181, Fix hang (or segfault) after M-A,...
You are not allowed to post comments on this tracker with your current authentication level.
patch #8181: Fix hang (or segfault) after M-A, right, M-T, (left,) ^K.
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Fri 13 Sep 2013 09:28:06 PM UTC | ||
Priority: | 5 - Normal | Status: | Done |
Privacy: | Public | Assigned to: | bens |
Open/Closed: | Closed | Release: | None |
Attached Files
file #29129: update-the-marked-data.patch added by bens (1KiB - text/x-patch - updates content of marker when it's on current line)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
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 |
---|---|---|---|---|---|
2014-02-22 | bens | Status | None | Done | |
Assigned to | None | bens | |||
Open/Closed | Open | Closed | |||
Summary | Fix segfault or hang after M-A, right, right, M-T, ^K. | Fix hang (or segfault) after M-A, right, M-T, (left,) ^K. | |||
2013-09-13 | bens | Attached File | - | Added update-the-marked-data.patch, #29129 |
Powered by Savane 3.13-02a9.
Corresponding source code
Nano goes astray when the mark is on, some characters are marked, but the cursor is on the same line as the mark, and then an M-T is done -- the whole edit window is then highlighted, as if the mark was at its beginning instead of where it was. If then a ^K is done, Nano either hangs or segfaults.
The patch fixes this by updating the data in the mark_begin variable when mark and cursor were on the same line.