diff --git a/ChangeLog b/ChangeLog index 35b49fa34c0a01017616aa7f783a18387481a0da..27964c1c6b97a43162ab9604a1306a74affb41de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/prompt.c b/src/prompt.c index b2eba64be5a2ab9b48f16d891130dfcbcaac8fb8..0fdc00142e02a7c5d98bbca2b3df5ef6210c1e2d 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -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(); } }