]> git.wh0rd.org Git - nano.git/commitdiff
don't allow verbatim input in view mode
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 1 Feb 2004 06:27:59 +0000 (06:27 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 1 Feb 2004 06:27:59 +0000 (06:27 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1644 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/global.c

index d2faf46e9fec2f764b102f04dc5d011bcbd4357d..0d0974539b5cec59556fdf132b3af0f6e0634655 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,9 @@ CVS code -
   write_marked()
        - New function used to write the current marked selection to a
          file, split out from do_writeout(). (DLR)
+- global.c:
+  shortcut_init()
+       - Only allow verbatim input when we're not in view mode. (DLR)
 - nano.c:
   do_verbatim_input()
        - Remove the now-unneeded code to disable XON, XOFF, and
index 546a0be73f83b7b3c2b239a07390a2ee2d6f9491..93843cf9dcac60fe311481d23565098c237716be 100644 (file)
@@ -580,7 +580,7 @@ void shortcut_init(int unjustify)
 
     sc_init_one(&main_list, NANO_NO_KEY, _("Verbatim Input"),
                IFHELP(nano_verbatim_msg, NANO_VERBATIM_KEY), NANO_NO_KEY,
-               NANO_NO_KEY, VIEW, do_verbatim_input);
+               NANO_NO_KEY, NOVIEW, do_verbatim_input);
 
 #ifdef ENABLE_MULTIBUFFER
     sc_init_one(&main_list, NANO_NO_KEY, _("Previous File"),