mouse: update title bar (the M flag) when the click is on the cursor
Clicking on the cursor toggles the mark, meaning that the flags in the title bar should be updated when --stateflags is active. This fixes https://savannah.gnu.org/bugs/?59747. Indirectly-reported-by: ObeliX <ObeliX-@gmx.de> Signed-off-by: OIX <ObeliX-@gmx.de>master
parent
5c4c30e26b
commit
d1c412d200
|
@ -1311,9 +1311,11 @@ int do_mouse(void)
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Clicking where the cursor is toggles the mark, as does clicking
|
/* Clicking where the cursor is toggles the mark, as does clicking
|
||||||
* beyond the line length with the cursor at the end of the line. */
|
* 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();
|
do_mark();
|
||||||
else
|
if (ISSET(STATEFLAGS))
|
||||||
|
titlebar(NULL);
|
||||||
|
} else
|
||||||
#endif
|
#endif
|
||||||
/* The cursor moved; clean the cutbuffer on the next cut. */
|
/* The cursor moved; clean the cutbuffer on the next cut. */
|
||||||
keep_cutbuffer = FALSE;
|
keep_cutbuffer = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue