Commit 8585bf2d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Avoiding to update the statusbar twice for a Backspace.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5613 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 2cfa96bd
Showing with 2 additions and 1 deletion
+2 -1
......@@ -8,6 +8,7 @@
* src/prompt.c (update_the_statusbar): Chop two parameters that are
always the same, and that are global variables anyway.
* src/prompt.c (update_bar_if_needed): Rename this for more contrast.
* src/prompt.c (do_statusbar_backspace): Avoid updating the bar twice.
2016-02-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Condense the descriptions of command-key
......
......@@ -355,7 +355,7 @@ void do_statusbar_right(void)
void do_statusbar_backspace(void)
{
if (statusbar_x > 0) {
do_statusbar_left();
statusbar_x = move_mbleft(answer, statusbar_x);
do_statusbar_delete();
}
}
......
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