From: Chris Allegretta Date: Sat, 31 Jan 2009 16:13:03 +0000 (+0000) Subject: - Fix compliation breakage with --disable-justify, reported by Mike Frysinger X-Git-Tag: v2.1.8~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=30f278f4a860357f3fd193692081e32a268a9b93;p=nano.git - Fix compliation breakage with --disable-justify, reported by Mike Frysinger - Add --disable-justify to nano-regress so I stop missing that git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4359 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/nano-regress b/nano-regress index 2fb8489f..92f1086f 100755 --- a/nano-regress +++ b/nano-regress @@ -8,7 +8,7 @@ sub combinations { return @rest, map { [$first, @$_] } @rest; } -my @allargs=("--enable-debug", "--disable-extra", "--enable-tiny", "--disable-browser --disable-help --disable-mouse --disable-operatingdir --disable-speller", "--disable-multibuffer", "--disable-nanorc", "--with-slang"); +my @allargs=("--enable-debug", "--disable-justify", "--disable-extra", "--enable-tiny", "--disable-browser --disable-help --disable-mouse --disable-operatingdir --disable-speller", "--disable-multibuffer", "--disable-nanorc", "--with-slang"); my @combos = combinations(@allargs); my $i = 0; diff --git a/src/global.c b/src/global.c index 99ea9693..ce68df57 100644 --- a/src/global.c +++ b/src/global.c @@ -1269,6 +1269,7 @@ void iso_me_harder_funcmap(short func) do_find_bracket(); else if (func == DO_PREV_WORD_VOID) do_prev_word_void(); +#ifndef DISABLE_JUSTIFY else if (func == DO_JUSTIFY_VOID) do_justify_void(); else if (func == DO_PARA_BEGIN_VOID) @@ -1277,6 +1278,7 @@ void iso_me_harder_funcmap(short func) do_para_end_void(); else if (func == DO_FULL_JUSTIFY) do_full_justify(); +#endif else if (func == DO_MARK) do_mark(); else if (func == DO_RESEARCH)