From 78d43007154e7fbdb1d6128ca8449be8ba0e7a2e Mon Sep 17 00:00:00 2001 From: OIX Date: Sat, 19 Dec 2020 13:27:13 +0100 Subject: [PATCH] fix: set/unset a mark by mouse doubleclick, did not update the state flags --- src/nano.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nano.c b/src/nano.c index 1f349ca..f33a086 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1311,9 +1311,10 @@ int do_mouse(void) #ifndef NANO_TINY /* Clicking where the cursor is toggles the mark, as does clicking * beyond the line length with the cursor at the end of the line. */ - if (sameline && openfile->current_x == current_x_save) + if (sameline && openfile->current_x == current_x_save) { do_mark(); - else + if (ISSET(STATEFLAGS)) titlebar(NULL); + } else #endif /* The cursor moved; clean the cutbuffer on the next cut. */ keep_cutbuffer = FALSE; -- 2.7.4