From: David Lawrence Ramsey Date: Fri, 14 Jan 2005 21:10:14 +0000 (+0000) Subject: make do_statusbar_cut_text() respect the CUT_TO_END flag X-Git-Tag: v1.3.6~136 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c4c45aa5327fddd5e9d6d171c0336b98dec15e89;p=nano.git make do_statusbar_cut_text() respect the CUT_TO_END flag git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2266 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index 601d6d40..faa15adf 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1875,9 +1875,14 @@ void do_statusbar_delete(void) void do_statusbar_cut_text(void) { - null_at(&answer, 0); - statusbar_x = 0; - statusbar_xend = 0; + if (ISSET(CUT_TO_END)) { + null_at(&answer, statusbar_x); + statusbar_xend = statusbar_x; + } else { + null_at(&answer, 0); + statusbar_x = 0; + statusbar_xend = 0; + } } void do_statusbar_verbatim_input(bool *got_enter)