]> git.wh0rd.org Git - nano.git/log
nano.git
19 years agoadd various type changes to avoid problems on systems where int and
David Lawrence Ramsey [Tue, 28 Jun 2005 06:25:34 +0000 (06:25 +0000)]
add various type changes to avoid problems on systems where int and
ssize_t are different sizes.  Make filestruct->lineno a ssize_t (so that
we can avoid negative line numbers at the "Go To Line" prompt),
current_y a ssize_t (in order to hold the maximum difference between two
filestruct->lineno's), totlines a size_t, and change related variables
to match

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2782 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore miscellaneous minor fixes
David Lawrence Ramsey [Tue, 28 Jun 2005 06:16:30 +0000 (06:16 +0000)]
more miscellaneous minor fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2781 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin do_justify(), save placewewant, and restore it if we unjustify, in
David Lawrence Ramsey [Tue, 28 Jun 2005 06:05:54 +0000 (06:05 +0000)]
in do_justify(), save placewewant, and restore it if we unjustify, in
order to avoid a potential screen update problem

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2780 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin edit_redraw(), make do_refresh a bool instead of an int
David Lawrence Ramsey [Tue, 28 Jun 2005 05:56:16 +0000 (05:56 +0000)]
in edit_redraw(), make do_refresh a bool instead of an int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2779 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoremove now-unused search_last_line global
David Lawrence Ramsey [Tue, 28 Jun 2005 05:27:20 +0000 (05:27 +0000)]
remove now-unused search_last_line global

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2778 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoper Mike Frysinger's suggestion, in the "nanorc" regexes, put "^" back
David Lawrence Ramsey [Mon, 27 Jun 2005 12:25:17 +0000 (12:25 +0000)]
per Mike Frysinger's suggestion, in the "nanorc" regexes, put "^" back
in the comment regex so that we don't match strings containing #'s
anymore

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2777 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoclarify and consolidate the descriptions of the "fill" and "tabsize"
David Lawrence Ramsey [Mon, 27 Jun 2005 05:01:32 +0000 (05:01 +0000)]
clarify and consolidate the descriptions of the "fill" and "tabsize"
options in the documentation (e.g. "fill 0" acts just like "fill
[negative number]")

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2776 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd missing "?" to the color name regex of the "nanorc" regexes, so that
David Lawrence Ramsey [Mon, 27 Jun 2005 03:47:52 +0000 (03:47 +0000)]
add missing "?" to the color name regex of the "nanorc" regexes, so that
regexes like "color ,green" won't be colored as though they're invalid

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2775 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd support for case insensitive expression matching when using color
David Lawrence Ramsey [Mon, 27 Jun 2005 03:07:10 +0000 (03:07 +0000)]
add support for case insensitive expression matching when using color
syntax highlighting, via the "icolor" directive, and add it to those
regexes that can use it (ported from Brand Huntsman's old patch)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2774 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agosimplify the file extension regex for groff
David Lawrence Ramsey [Mon, 27 Jun 2005 03:04:49 +0000 (03:04 +0000)]
simplify the file extension regex for groff

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2773 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd Mike Frysinger's GCC builtins regex to the "c-file" regexes
David Lawrence Ramsey [Mon, 27 Jun 2005 02:56:59 +0000 (02:56 +0000)]
add Mike Frysinger's GCC builtins regex to the "c-file" regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agopunctuation fix
David Lawrence Ramsey [Sun, 26 Jun 2005 23:35:55 +0000 (23:35 +0000)]
punctuation fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2771 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agodo the same thing for the equivalent regex for assembler files
David Lawrence Ramsey [Sun, 26 Jun 2005 23:16:14 +0000 (23:16 +0000)]
do the same thing for the equivalent regex for assembler files

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2770 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore last-minute comment fixes
David Lawrence Ramsey [Sun, 26 Jun 2005 22:59:54 +0000 (22:59 +0000)]
more last-minute comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2769 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd missing int -> bool conversion
David Lawrence Ramsey [Sun, 26 Jun 2005 22:32:51 +0000 (22:32 +0000)]
add missing int -> bool conversion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2768 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin do_toggle(), properly treat color syntax highlighting as enabled by
David Lawrence Ramsey [Sun, 26 Jun 2005 20:05:01 +0000 (20:05 +0000)]
in do_toggle(), properly treat color syntax highlighting as enabled by
default, and only treat wrapping as enabled by default when
DISABLE_WRAPPING isn't defined

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2767 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoapparently a "[[:space:]]" doesn't work properly inside a "[^ ... ]";
David Lawrence Ramsey [Sun, 26 Jun 2005 19:49:53 +0000 (19:49 +0000)]
apparently a "[[:space:]]" doesn't work properly inside a "[^ ... ]";
replace it with a literal space and a literal tab, so that include files
are properly colored again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2766 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoper Mike Frysinger's suggestion, change the word detection functions'
David Lawrence Ramsey [Sun, 26 Jun 2005 19:03:48 +0000 (19:03 +0000)]
per Mike Frysinger's suggestion, change the word detection functions'
behavior back to what it was before (for now, until there's a way for
the user to control it), as their new behavior makes them harder to use
when editing source code; by the same token, leave word count's behavior
the way it is, since it's generally not used when editing source code

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2765 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd Mike Frysinger's regexes for assembler files
David Lawrence Ramsey [Sun, 26 Jun 2005 03:32:03 +0000 (03:32 +0000)]
add Mike Frysinger's regexes for assembler files

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2764 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin nanorc.sample, banish " " whever possible in favor of "[[:space:]]"
David Lawrence Ramsey [Sun, 26 Jun 2005 03:26:24 +0000 (03:26 +0000)]
in nanorc.sample, banish " " whever possible in favor of "[[:space:]]"

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2763 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd "cxx" and "hxx" to the list of extensions that the "c-file" regexes
David Lawrence Ramsey [Sun, 26 Jun 2005 02:55:04 +0000 (02:55 +0000)]
add "cxx" and "hxx" to the list of extensions that the "c-file" regexes
apply to, and add "warning" and "error" to them as well

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2762 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agolast-minute comment fixes
David Lawrence Ramsey [Sat, 25 Jun 2005 20:56:36 +0000 (20:56 +0000)]
last-minute comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2761 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin disable_flow_control() and enable_flow_control(), only turn off flow
David Lawrence Ramsey [Thu, 23 Jun 2005 22:28:56 +0000 (22:28 +0000)]
in disable_flow_control() and enable_flow_control(), only turn off flow
control on input, as it might be needed for output on slow terminals

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2760 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore cosmetic fixes
David Lawrence Ramsey [Wed, 22 Jun 2005 02:31:12 +0000 (02:31 +0000)]
more cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2759 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoremove all instances of charcpy() and replace them with strncpy(), for
David Lawrence Ramsey [Wed, 22 Jun 2005 00:24:11 +0000 (00:24 +0000)]
remove all instances of charcpy() and replace them with strncpy(), for
ease of maintenance

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2758 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoput back erroneously removed bits
David Lawrence Ramsey [Tue, 21 Jun 2005 22:48:38 +0000 (22:48 +0000)]
put back erroneously removed bits

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2757 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agotypo fixes
David Lawrence Ramsey [Tue, 21 Jun 2005 22:37:47 +0000 (22:37 +0000)]
typo fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2756 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agochange some instances of charcpy() back to strncpy(), as the latter's
David Lawrence Ramsey [Tue, 21 Jun 2005 22:32:50 +0000 (22:32 +0000)]
change some instances of charcpy() back to strncpy(), as the latter's
numm-termination is needed in some places

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2755 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agooops; do_yesno() doesn't need display_string(); it only needs to use
David Lawrence Ramsey [Tue, 21 Jun 2005 21:03:06 +0000 (21:03 +0000)]
oops; do_yesno() doesn't need display_string(); it only needs to use
actual_x() to get the actual number of characters in buf when it calls
mvwaddnstr()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2754 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin titlebar(), handle VERLEN's being a UTF-8 string
David Lawrence Ramsey [Tue, 21 Jun 2005 20:37:04 +0000 (20:37 +0000)]
in titlebar(), handle VERLEN's being a UTF-8 string

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2753 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix total_redraw() so that it always keeps the cursor in the same window
David Lawrence Ramsey [Tue, 21 Jun 2005 20:16:26 +0000 (20:16 +0000)]
fix total_redraw() so that it always keeps the cursor in the same window

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin do_yesno(), add a missing assert, and use display_string() to display
David Lawrence Ramsey [Tue, 21 Jun 2005 19:47:39 +0000 (19:47 +0000)]
in do_yesno(), add a missing assert, and use display_string() to display
the prompt, so that we don't end it in the middle of a multibyte
character if it's more than (COLS - 1) bytes long

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoper Jordi's suggestion, change the toggle for -E/--tabstospaces to
David Lawrence Ramsey [Tue, 21 Jun 2005 17:44:01 +0000 (17:44 +0000)]
per Jordi's suggestion, change the toggle for -E/--tabstospaces to
Meta-Q

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2750 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoper Jordi's suggestion, remove the Meta-U toggle for -U/--quickblank;
David Lawrence Ramsey [Tue, 21 Jun 2005 16:19:47 +0000 (16:19 +0000)]
per Jordi's suggestion, remove the Meta-U toggle for -U/--quickblank;
the rcfile option is enough for those that use it regularly

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2749 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore cosmetic fixes
David Lawrence Ramsey [Tue, 21 Jun 2005 15:47:39 +0000 (15:47 +0000)]
more cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2748 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorevert last change, since it'll cause problems with arguments containing
David Lawrence Ramsey [Tue, 21 Jun 2005 15:41:46 +0000 (15:41 +0000)]
revert last change, since it'll cause problems with arguments containing
spaces

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2747 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin configure.ac, add a few more minor consistency fixes
David Lawrence Ramsey [Tue, 21 Jun 2005 15:32:12 +0000 (15:32 +0000)]
in configure.ac, add a few more minor consistency fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment fixes
David Lawrence Ramsey [Tue, 21 Jun 2005 04:16:12 +0000 (04:16 +0000)]
comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2745 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorevert last change, as the multibyte strcoll() functions can't handle
David Lawrence Ramsey [Tue, 21 Jun 2005 04:11:04 +0000 (04:11 +0000)]
revert last change, as the multibyte strcoll() functions can't handle
e.g. 2-to-1 character conversions as the original strcoll() can

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2744 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd a multibyte case-insensitive version of strcoll(), and make
David Lawrence Ramsey [Tue, 21 Jun 2005 03:26:58 +0000 (03:26 +0000)]
add a multibyte case-insensitive version of strcoll(), and make
diralphasort() use it so that filenames are sorted properly according to
the current locale

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2743 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocosmetic fixes
David Lawrence Ramsey [Tue, 21 Jun 2005 01:41:46 +0000 (01:41 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2742 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorecover properly when the alternate spell checker fails
David Lawrence Ramsey [Tue, 21 Jun 2005 01:33:31 +0000 (01:33 +0000)]
recover properly when the alternate spell checker fails

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2741 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomake sure the function checks are *really* in alphabetical order
David Lawrence Ramsey [Mon, 20 Jun 2005 23:10:24 +0000 (23:10 +0000)]
make sure the function checks are *really* in alphabetical order

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2740 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment fix
David Lawrence Ramsey [Mon, 20 Jun 2005 21:17:01 +0000 (21:17 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2739 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agotypo fix
David Lawrence Ramsey [Mon, 20 Jun 2005 21:03:57 +0000 (21:03 +0000)]
typo fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2738 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoremove unnecessary variables from and add missing asserts to
David Lawrence Ramsey [Mon, 20 Jun 2005 20:58:41 +0000 (20:58 +0000)]
remove unnecessary variables from and add missing asserts to
control_mbrep()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2737 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agotypo fix
David Lawrence Ramsey [Mon, 20 Jun 2005 03:01:04 +0000 (03:01 +0000)]
typo fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2736 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoupdate the "Feature Toggles" section in nano.texi to match current nano
David Lawrence Ramsey [Sun, 19 Jun 2005 22:22:01 +0000 (22:22 +0000)]
update the "Feature Toggles" section in nano.texi to match current nano

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2735 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agowhen reading color syntax names or sorting filenames, use mbstrcasecmp()
David Lawrence Ramsey [Sun, 19 Jun 2005 21:10:48 +0000 (21:10 +0000)]
when reading color syntax names or sorting filenames, use mbstrcasecmp()
instead of strcasecmp() to compare them, in case they're UTF-8

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2734 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin read_line(), rename variable len to buf_len, for consistency
David Lawrence Ramsey [Sun, 19 Jun 2005 19:57:13 +0000 (19:57 +0000)]
in read_line(), rename variable len to buf_len, for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment and indentation fixes
David Lawrence Ramsey [Sat, 18 Jun 2005 22:33:55 +0000 (22:33 +0000)]
comment and indentation fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2732 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoremove the reset_cursor() call in statusq(), as it erroneously leaves
David Lawrence Ramsey [Sat, 18 Jun 2005 22:33:24 +0000 (22:33 +0000)]
remove the reset_cursor() call in statusq(), as it erroneously leaves
the cursor in the edit window when we're at the "Save File Under
Different Name" prompt

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2731 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment fix
David Lawrence Ramsey [Sat, 18 Jun 2005 20:47:41 +0000 (20:47 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin configure.ac, check for possibly unavailable functions in
David Lawrence Ramsey [Sat, 18 Jun 2005 20:08:43 +0000 (20:08 +0000)]
in configure.ac, check for possibly unavailable functions in
alphabetical order

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2729 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoformatting fixes for Makefile.am and m4/Makefile.am
David Lawrence Ramsey [Sat, 18 Jun 2005 19:56:30 +0000 (19:56 +0000)]
formatting fixes for Makefile.am and m4/Makefile.am

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2728 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoformatting fixes
David Lawrence Ramsey [Sat, 18 Jun 2005 17:20:54 +0000 (17:20 +0000)]
formatting fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin configure.ac, check for get_wch() instead of wget_wch() to determine
David Lawrence Ramsey [Sat, 18 Jun 2005 17:06:02 +0000 (17:06 +0000)]
in configure.ac, check for get_wch() instead of wget_wch() to determine
if there's a wide curses library, as it's a more generic function

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2726 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorename total_update() total_redraw() for consistency
David Lawrence Ramsey [Sat, 18 Jun 2005 15:49:17 +0000 (15:49 +0000)]
rename total_update() total_redraw() for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2725 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agowork around slang brain damage in total_update()
David Lawrence Ramsey [Sat, 18 Jun 2005 15:15:48 +0000 (15:15 +0000)]
work around slang brain damage in total_update()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2724 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix still more minor display update problems
David Lawrence Ramsey [Sat, 18 Jun 2005 14:30:40 +0000 (14:30 +0000)]
fix still more minor display update problems

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2723 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix more minor screen update problems
David Lawrence Ramsey [Sat, 18 Jun 2005 14:05:21 +0000 (14:05 +0000)]
fix more minor screen update problems

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2722 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agon is ignored in the mbstowcs() call, so it can be 0 instead of
David Lawrence Ramsey [Sat, 18 Jun 2005 05:15:08 +0000 (05:15 +0000)]
n is ignored in the mbstowcs() call, so it can be 0 instead of
(size_t)-1

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2721 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin statusq(), call wrefresh(bottomwin) after getting an answer and
David Lawrence Ramsey [Sat, 18 Jun 2005 04:32:26 +0000 (04:32 +0000)]
in statusq(), call wrefresh(bottomwin) after getting an answer and
blanking out the statusbar, to make sure that the blanking is done; this
fixes a problem where the statusbar is not properly blanked after using
the "Go To Line" prompt with the NO_HELP flag set

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin toggle_init(), reorder the toggles to put more toggles with similar
David Lawrence Ramsey [Sat, 18 Jun 2005 03:37:56 +0000 (03:37 +0000)]
in toggle_init(), reorder the toggles to put more toggles with similar
functions together

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2719 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoclarify the description of the line wrapping toggle
David Lawrence Ramsey [Sat, 18 Jun 2005 03:03:32 +0000 (03:03 +0000)]
clarify the description of the line wrapping toggle

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2718 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agochange the short option for --restricted from -Z to -R
David Lawrence Ramsey [Fri, 17 Jun 2005 22:53:41 +0000 (22:53 +0000)]
change the short option for --restricted from -Z to -R

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix misplaced long option
David Lawrence Ramsey [Fri, 17 Jun 2005 22:50:55 +0000 (22:50 +0000)]
fix misplaced long option

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2716 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd comment
David Lawrence Ramsey [Fri, 17 Jun 2005 22:33:15 +0000 (22:33 +0000)]
add comment

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2715 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd a description of -U/--quickblank to nano.texi, plus a few more
David Lawrence Ramsey [Fri, 17 Jun 2005 22:11:43 +0000 (22:11 +0000)]
add a description of -U/--quickblank to nano.texi, plus a few more
miscellaneous documentation fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2714 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoQUICK_BLANK and CONST_UPDATE shouldn't be working at the same time, as
David Lawrence Ramsey [Fri, 17 Jun 2005 21:52:59 +0000 (21:52 +0000)]
QUICK_BLANK and CONST_UPDATE shouldn't be working at the same time, as
they make the statusbar blank and redraw itself far too many times, and
it makes no sense to use them together anyway; also, clean up
check_statusblank() a little

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2713 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoformatting fix
David Lawrence Ramsey [Fri, 17 Jun 2005 21:21:10 +0000 (21:21 +0000)]
formatting fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2712 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorename the CONSTUPDATE flag to CONST_UPDATE, and clarify its description
David Lawrence Ramsey [Fri, 17 Jun 2005 21:08:13 +0000 (21:08 +0000)]
rename the CONSTUPDATE flag to CONST_UPDATE, and clarify its description
in the help text

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2711 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd missing #ifdef
David Lawrence Ramsey [Fri, 17 Jun 2005 19:09:18 +0000 (19:09 +0000)]
add missing #ifdef

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2710 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd -U/--quickblank option, a Meta-U toggle, and a "quickblank" rcfile
David Lawrence Ramsey [Fri, 17 Jun 2005 19:06:25 +0000 (19:06 +0000)]
add -U/--quickblank option, a Meta-U toggle, and a "quickblank" rcfile
option to blank the statusbar after 1 keystroke instead of 25; note that
this is disabled when NANO_SMALL is defined

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2709 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomove all the rcfile options disabled by NANO_SMALL to the end, for
David Lawrence Ramsey [Fri, 17 Jun 2005 19:01:00 +0000 (19:01 +0000)]
move all the rcfile options disabled by NANO_SMALL to the end, for
consistency with the long options in nano.c

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2708 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agosince the DISABLE_CURPOS flag is only used in winio.c, reduce it to a
David Lawrence Ramsey [Fri, 17 Jun 2005 18:27:00 +0000 (18:27 +0000)]
since the DISABLE_CURPOS flag is only used in winio.c, reduce it to a
static bool there

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2707 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin statusbar(), set statusblank to 25 instead of 26, to match current
David Lawrence Ramsey [Fri, 17 Jun 2005 18:14:03 +0000 (18:14 +0000)]
in statusbar(), set statusblank to 25 instead of 26, to match current
Pico

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2706 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore miscellaneous documentation updates
David Lawrence Ramsey [Fri, 17 Jun 2005 18:00:16 +0000 (18:00 +0000)]
more miscellaneous documentation updates

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2705 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomore cosmetic fixes
David Lawrence Ramsey [Fri, 17 Jun 2005 17:37:46 +0000 (17:37 +0000)]
more cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2704 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agovarious #ifdef fixes
David Lawrence Ramsey [Thu, 16 Jun 2005 20:58:19 +0000 (20:58 +0000)]
various #ifdef fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomiscellaneous cleanups in do_find_bracket(): rename variables for
David Lawrence Ramsey [Thu, 16 Jun 2005 20:41:20 +0000 (20:41 +0000)]
miscellaneous cleanups in do_find_bracket(): rename variables for
consistency, and save the search direction and regexp setting in two
bools instead of one flags variable

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2702 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd "backwards" and "casesensitive" to the "rcfile" regexes
David Lawrence Ramsey [Thu, 16 Jun 2005 18:56:00 +0000 (18:56 +0000)]
add "backwards" and "casesensitive" to the "rcfile" regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2701 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd the "regexp" rcfile option back in at DB's suggestion, the
David Lawrence Ramsey [Thu, 16 Jun 2005 18:48:30 +0000 (18:48 +0000)]
add the "regexp" rcfile option back in at DB's suggestion, the
"casesensitive" and "backwards" rcfile options for consistency,
documentation updates, and related cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2700 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agodocument the new Meta-E toggle
David Lawrence Ramsey [Thu, 16 Jun 2005 18:35:55 +0000 (18:35 +0000)]
document the new Meta-E toggle

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin usage(), remove inaccurate default listed for -Q/--quotestr
David Lawrence Ramsey [Thu, 16 Jun 2005 17:26:01 +0000 (17:26 +0000)]
in usage(), remove inaccurate default listed for -Q/--quotestr

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2698 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix assert
David Lawrence Ramsey [Thu, 16 Jun 2005 12:43:08 +0000 (12:43 +0000)]
fix assert

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix compilation with --enable-debug
David Lawrence Ramsey [Thu, 16 Jun 2005 12:17:23 +0000 (12:17 +0000)]
fix compilation with --enable-debug

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoremove stray "]"
David Lawrence Ramsey [Thu, 16 Jun 2005 12:16:24 +0000 (12:16 +0000)]
remove stray "]"

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2695 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agowording fix
David Lawrence Ramsey [Thu, 16 Jun 2005 03:11:39 +0000 (03:11 +0000)]
wording fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2694 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoin shortcut_init(), clarify the description of ^X when
David Lawrence Ramsey [Thu, 16 Jun 2005 03:07:05 +0000 (03:07 +0000)]
in shortcut_init(), clarify the description of ^X when
--enable-multibuffer is used

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2693 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agochange the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag
David Lawrence Ramsey [Thu, 16 Jun 2005 02:13:10 +0000 (02:13 +0000)]
change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2692 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agochange the NO_UTF8 flag to the USE_UTF8 flag, and reverse its meaning
David Lawrence Ramsey [Thu, 16 Jun 2005 02:09:57 +0000 (02:09 +0000)]
change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its meaning

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocosmetic fix
David Lawrence Ramsey [Thu, 16 Jun 2005 01:56:51 +0000 (01:56 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2690 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment fix
David Lawrence Ramsey [Thu, 16 Jun 2005 01:37:13 +0000 (01:37 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2689 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix memory leak
David Lawrence Ramsey [Thu, 16 Jun 2005 01:36:10 +0000 (01:36 +0000)]
fix memory leak

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agoadd the "tabstospaces" option to the "rcfile" regexes
David Lawrence Ramsey [Thu, 16 Jun 2005 01:25:11 +0000 (01:25 +0000)]
add the "tabstospaces" option to the "rcfile" regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agomove the "tabstospaces" option in nanorc.sample down so the options are
David Lawrence Ramsey [Thu, 16 Jun 2005 01:18:56 +0000 (01:18 +0000)]
move the "tabstospaces" option in nanorc.sample down so the options are
in alphabetical order again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2686 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agofix changelog entry
David Lawrence Ramsey [Wed, 15 Jun 2005 23:36:08 +0000 (23:36 +0000)]
fix changelog entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2685 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agocomment fix
David Lawrence Ramsey [Wed, 15 Jun 2005 23:35:53 +0000 (23:35 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2684 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

19 years agorevert erroneous help_init() changes
David Lawrence Ramsey [Wed, 15 Jun 2005 23:33:54 +0000 (23:33 +0000)]
revert erroneous help_init() changes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2683 35c25a1d-7b9e-4130-9fde-d3aeb78583b8