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
master
David Lawrence Ramsey 2005-01-14 21:10:14 +00:00
parent e3013e3ed0
commit c4c45aa532
1 changed files with 8 additions and 3 deletions

View File

@ -1875,10 +1875,15 @@ void do_statusbar_delete(void)
void do_statusbar_cut_text(void) void do_statusbar_cut_text(void)
{ {
if (ISSET(CUT_TO_END)) {
null_at(&answer, statusbar_x);
statusbar_xend = statusbar_x;
} else {
null_at(&answer, 0); null_at(&answer, 0);
statusbar_x = 0; statusbar_x = 0;
statusbar_xend = 0; statusbar_xend = 0;
} }
}
void do_statusbar_verbatim_input(bool *got_enter) void do_statusbar_verbatim_input(bool *got_enter)
{ {