From c0c006d85203e5e67b28359ed6710ce15d6b24ee Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 24 Oct 2001 17:36:45 +0000 Subject: [PATCH] nano.c:main() - Ignore 26 (control-]) (bug discovered by David Lawrence Ramsey) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@881 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ cut.c | 12 ++++++++++-- nano.c | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 42a88e41..88eb1e67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ CVS code - move to the previous word in the file. - Added #ifdef NANO_SMALL around do_next_space and do_prev_space codes, as nano-tiny doesn't particularly need those features. + main() + - Ignore 26 (control-]) (bug discovered by David Lawrence Ramsey) - nano.texi: - Backported fix from 1.1 for Mouse Toggle. - po/de.po: diff --git a/cut.c b/cut.c index 08a2fa85..6a05aca2 100644 --- a/cut.c +++ b/cut.c @@ -385,8 +385,12 @@ int do_uncut_text(void) i = editbot->lineno; current = newend; - if (i <= newend->lineno) + if (i < newend->lineno) { edit_update(current, CENTER); + } + else { + edit_refresh(); + } } /* If marked cut == 2, that means that we're doing a cut to end @@ -444,8 +448,12 @@ int do_uncut_text(void) i = editbot->lineno; renumber(newbuf); - if (i < newend->lineno) + if (i < newend->lineno) { edit_update(fileptr, CENTER); + } + else { + edit_refresh(); + } dump_buffer_reverse(fileptr); diff --git a/nano.c b/nano.c index b7427ec8..221abf02 100644 --- a/nano.c +++ b/nano.c @@ -2733,6 +2733,7 @@ int main(int argc, char *argv[]) case 331: /* Stuff that we don't want to do squat */ case -1: + case 29: /* Ctrl-] */ case 410: /* Must ignore this, it gets sent when we resize */ #ifdef PDCURSES case 541: /* ???? */ -- 2.39.5