]> git.wh0rd.org Git - nano.git/commitdiff
nano.c:main() - Ignore 26 (control-]) (bug discovered by David Lawrence Ramsey)
authorChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 17:36:45 +0000 (17:36 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 17:36:45 +0000 (17:36 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@881 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
cut.c
nano.c

index 42a88e41ef1001ecdef167c5216a74223038a528..88eb1e672cdb0848f1eb64aac5e3ddb5a77034eb 100644 (file)
--- 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 08a2fa85d950c30682201ba733267b2807150626..6a05aca2cd6b0181117d069564f65c54e34e6672 100644 (file)
--- 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 b7427ec8207ee394627cb73d7205aed8e62a1676..221abf02e6857da39365e6bfd95c9f613b444bf2 100644 (file)
--- 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:           /* ???? */