From: Chris Allegretta Date: Sun, 29 Jun 2008 06:22:31 +0000 (+0000) Subject: Fix for 23733: search history broken with nano-2.1.1+ X-Git-Tag: v2.1.3~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1347f22c957f4634a61fa77ab364f883d7d8078b;p=nano.git Fix for 23733: search history broken with nano-2.1.1+ git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4270 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 18cfe45a..416cb2d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-29 Chris Allegretta + * global.c: Fix for not having search history when --disable-justify is used + (Savannah bug 23733) + GNU nano 2.1.2 - 2008.06.24 2008-06-24 Chris Allegretta * rcfile.c: Added function check_bad_binding() to look for sequences which diff --git a/src/global.c b/src/global.c index 3e10886d..4f2a291c 100644 --- a/src/global.c +++ b/src/global.c @@ -1072,13 +1072,13 @@ void shortcut_init(bool unjustify) add_to_sclist(MALL, "khome", do_home, 0, TRUE); add_to_sclist(MALL, "^E", do_end, 0, TRUE); add_to_sclist(MALL, "kend", do_end, 0, TRUE); -#ifndef DISABLE_JUSTIFY #ifndef NANO_TINY add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MWHEREISFILE, "^P", (void *) prev_history_msg, 0, FALSE); add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MWHEREISFILE, "kup", (void *) prev_history_msg, 0, FALSE); add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MWHEREISFILE, "^N", (void *) next_history_msg, 0, FALSE); add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2|MWHEREISFILE, "kdown", (void *) next_history_msg, 0, FALSE); #endif +#ifndef DISABLE_JUSTIFY add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2, "^W", do_para_begin_void, 0, TRUE); add_to_sclist(MWHEREIS|MREPLACE|MREPLACE2,