Commit 7a038adf authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

input: don't stop prepending when the user adds text via a shortcut

When characters are added via Verbatim Input or by pressing <Tab>,
the prepend flag should be retained, just like when characters are
typed directly.

This fixes https://savannah.gnu.org/bugs/?52956.
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -1772,8 +1772,10 @@ int do_input(bool allow_funcs)
}
#endif
#ifdef ENABLE_WRAPPING
/* If the cursor moved to another line, clear the prepend flag. */
if (openfile->current->next != was_next)
/* If the cursor moved to another line and this was not caused
* by adding characters to the buffer, clear the prepend flag. */
if (openfile->current->next != was_next &&
s->scfunc != do_tab && s->scfunc != do_verbatim_input)
wrap_reset();
#endif
#ifdef ENABLE_COLOR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment