nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7c08e8ea69bd4c7bdf80fe1ce1fed49601522639
parent 542426f1f1021ed3b4ed30ec73fbc918303acc40
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 30 Apr 2019 09:50:21 +0200

cutting: ignore the mark when a word is deleted

Just like for deleting a word to the left, the mark should be ignored
also when deleting a word to the right.

This fixes https://savannah.gnu.org/bugs/?56241.

Diffstat:
Msrc/cut.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cut.c b/src/cut.c @@ -203,6 +203,8 @@ void chop_previous_word(void) /* Delete a word rightward. */ void chop_next_word(void) { + openfile->mark = NULL; + if (is_cuttable(openfile->current_x > 0)) chop_word(FORWARD); }