nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8585bf2dd402dcae4fe1179ed0f100844a295a3a
parent 2cfa96bde9a1dfdf165f8136e360781792c5a9c2
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat,  6 Feb 2016 11:50:57 +0000

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

Diffstat:
MChangeLog | 1+
Msrc/prompt.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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(); } }