commit 96fbdfbc7dd60a38ffa67cae7ef5ccaad3915efb
parent 272a9538891e1b60d101dd0c4827040e699bba5e
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 30 Aug 2016 10:41:28 +0200
input: unset a softmark whenever a character is typed
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1638,6 +1638,12 @@ int do_input(bool allow_funcs)
puddle = charealloc(puddle, depth + 2);
puddle[depth++] = (char)input;
}
+#ifndef NANO_TINY
+ if (openfile->mark_set && openfile->kind_of_mark == SOFTMARK) {
+ openfile->mark_set = FALSE;
+ refresh_needed = TRUE;
+ }
+#endif
}
/* If we got a shortcut or toggle, or if there aren't any other