From 96fbdfbc7dd60a38ffa67cae7ef5ccaad3915efb Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 30 Aug 2016 10:41:28 +0200 Subject: [PATCH] input: unset a softmark whenever a character is typed --- src/nano.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nano.c b/src/nano.c index 062d3f1b..db371af3 100644 --- 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