]> git.wh0rd.org Git - nano.git/log
nano.git
19 years agocosmetic fixes
David Lawrence Ramsey [Mon, 1 Aug 2005 21:53:54 +0000 (21:53 +0000)]
cosmetic fixes

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

19 years agofix misplaced code in previous edit_scroll() fix
David Lawrence Ramsey [Mon, 1 Aug 2005 21:17:38 +0000 (21:17 +0000)]
fix misplaced code in previous edit_scroll() fix

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

19 years agoeliminate still more redundant screen updates
David Lawrence Ramsey [Mon, 1 Aug 2005 21:05:29 +0000 (21:05 +0000)]
eliminate still more redundant screen updates

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

19 years agorename get_word_kbinput() to get_unicode_kbinput(), and also rename
David Lawrence Ramsey [Mon, 1 Aug 2005 19:12:05 +0000 (19:12 +0000)]
rename get_word_kbinput() to get_unicode_kbinput(), and also rename
related variables

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

19 years agoin get_word_kbinput(), limit the input word to hexadecimal FFFD instead
David Lawrence Ramsey [Mon, 1 Aug 2005 18:56:46 +0000 (18:56 +0000)]
in get_word_kbinput(), limit the input word to hexadecimal FFFD instead
of FFFF, as FFFE and FFFF are invalid Unicode characters

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

19 years agomiscellaneous enum cleanups, including making the file-writing
David Lawrence Ramsey [Mon, 1 Aug 2005 18:27:10 +0000 (18:27 +0000)]
miscellaneous enum cleanups, including making the file-writing
functions' append parameter an enum instead of an int

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

19 years agocosmetic fix
David Lawrence Ramsey [Mon, 1 Aug 2005 05:55:07 +0000 (05:55 +0000)]
cosmetic fix

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

19 years agoformatting fixes
David Lawrence Ramsey [Mon, 1 Aug 2005 05:54:11 +0000 (05:54 +0000)]
formatting fixes

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

19 years agodocument the "none" and "default" syntaxes in nanorc.5
David Lawrence Ramsey [Mon, 1 Aug 2005 05:08:01 +0000 (05:08 +0000)]
document the "none" and "default" syntaxes in nanorc.5

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

19 years agodocument the explanation of the "none" syntax in nanorc.sample
David Lawrence Ramsey [Mon, 1 Aug 2005 05:01:30 +0000 (05:01 +0000)]
document the explanation of the "none" syntax in nanorc.sample

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

19 years agoport over Brand Huntsman's reserved "none" syntax to counteract his
David Lawrence Ramsey [Mon, 1 Aug 2005 04:59:34 +0000 (04:59 +0000)]
port over Brand Huntsman's reserved "none" syntax to counteract his
"default" syntax when necessary (the latter *is* actually ported mostly
from his patch with a few tweaks; the "default-syntax" option is
apparently something else entirely)

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

19 years agotreat color syntax names case sensitively, for consistency with how
David Lawrence Ramsey [Mon, 1 Aug 2005 04:34:27 +0000 (04:34 +0000)]
treat color syntax names case sensitively, for consistency with how
their filename regexes are treated

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

19 years agomore color updates: add a "default" syntax that takes no extensions for
David Lawrence Ramsey [Mon, 1 Aug 2005 04:23:29 +0000 (04:23 +0000)]
more color updates: add a "default" syntax that takes no extensions for
those files that don't match any other syntax's extensions (ported from
Brand Huntsman's old patch, but modified to work with a syntax named
"default" instead of requiring a "default-syntax" keyword, and to fit
into the existing color architecture)

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

19 years agothe old assert is actually needed, so put it back too
David Lawrence Ramsey [Mon, 1 Aug 2005 03:05:53 +0000 (03:05 +0000)]
the old assert is actually needed, so put it back too

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

19 years agorevert previous simplification, as it only moved complexity from one
David Lawrence Ramsey [Mon, 1 Aug 2005 02:18:05 +0000 (02:18 +0000)]
revert previous simplification, as it only moved complexity from one
place to another, and add formatting fixes to the old code

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

19 years agocomment fix
David Lawrence Ramsey [Sun, 31 Jul 2005 20:57:38 +0000 (20:57 +0000)]
comment fix

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

19 years agosimplify further
David Lawrence Ramsey [Sun, 31 Jul 2005 20:20:37 +0000 (20:20 +0000)]
simplify further

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

19 years agofix cursor position display breakage
David Lawrence Ramsey [Sun, 31 Jul 2005 20:15:01 +0000 (20:15 +0000)]
fix cursor position display breakage

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

19 years agosimplify do_cursorpos(), and remove an unneeded assert from it
David Lawrence Ramsey [Sun, 31 Jul 2005 18:51:51 +0000 (18:51 +0000)]
simplify do_cursorpos(), and remove an unneeded assert from it

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

19 years agoin parse_syntax(), flag duplicate syntax names as errors
David Lawrence Ramsey [Sat, 30 Jul 2005 21:53:05 +0000 (21:53 +0000)]
in parse_syntax(), flag duplicate syntax names as errors

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

19 years agoport over more of Brand Huntsman's old patch: a color syntax specified
David Lawrence Ramsey [Sat, 30 Jul 2005 21:24:56 +0000 (21:24 +0000)]
port over more of Brand Huntsman's old patch: a color syntax specified
on the command line will now override the syntax associated with the
current file extension

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

19 years agofix extension decompilation breakage
David Lawrence Ramsey [Fri, 29 Jul 2005 22:08:56 +0000 (22:08 +0000)]
fix extension decompilation breakage

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

19 years agoadd missing bit from last patch
David Lawrence Ramsey [Fri, 29 Jul 2005 21:59:44 +0000 (21:59 +0000)]
add missing bit from last patch

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

19 years agoport over more of Brand Huntsman's old patch (with a few tweaks):
David Lawrence Ramsey [Fri, 29 Jul 2005 21:42:08 +0000 (21:42 +0000)]
port over more of Brand Huntsman's old patch (with a few tweaks):
compile the file extension regexes on an as-needed basis too

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

19 years agoformatting fixes
David Lawrence Ramsey [Fri, 29 Jul 2005 21:41:04 +0000 (21:41 +0000)]
formatting fixes

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

19 years agofix display breakage
David Lawrence Ramsey [Fri, 29 Jul 2005 03:28:09 +0000 (03:28 +0000)]
fix display breakage

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

19 years agoremove unnecessary can_change_colors() call
David Lawrence Ramsey [Wed, 27 Jul 2005 03:12:22 +0000 (03:12 +0000)]
remove unnecessary can_change_colors() call

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

19 years agocosmetic fix
David Lawrence Ramsey [Wed, 27 Jul 2005 03:11:41 +0000 (03:11 +0000)]
cosmetic fix

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

19 years agoremove still more redundant screen updates; change all wrefresh() calls
David Lawrence Ramsey [Tue, 26 Jul 2005 14:42:57 +0000 (14:42 +0000)]
remove still more redundant screen updates; change all wrefresh() calls
to wnoutrefresh() calls, except for those in total_update() and
do_credits(); call doupdate() just before using blocking input, since
nano spends the most time using it, for blocking input; and only do
constant sursor position display if we're just about to use blocking
input

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

19 years agomore comment fixes
David Lawrence Ramsey [Tue, 26 Jul 2005 14:26:47 +0000 (14:26 +0000)]
more comment fixes

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

19 years agohandle invalid multibyte characters more efficiently
David Lawrence Ramsey [Tue, 26 Jul 2005 06:13:45 +0000 (06:13 +0000)]
handle invalid multibyte characters more efficiently

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 26 Jul 2005 05:20:02 +0000 (05:20 +0000)]
comment fix

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

19 years agotypo fix
David Lawrence Ramsey [Tue, 26 Jul 2005 04:18:17 +0000 (04:18 +0000)]
typo fix

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

19 years agoand don't let a SIGWINCH throw out the changes made by the alternate
David Lawrence Ramsey [Tue, 26 Jul 2005 01:17:16 +0000 (01:17 +0000)]
and don't let a SIGWINCH throw out the changes made by the alternate
spell checker, either

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

19 years agoremove redundant code, and add a comment
David Lawrence Ramsey [Tue, 26 Jul 2005 00:42:48 +0000 (00:42 +0000)]
remove redundant code, and add a comment

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

19 years agosimplify the previous fix
David Lawrence Ramsey [Tue, 26 Jul 2005 00:06:34 +0000 (00:06 +0000)]
simplify the previous fix

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

19 years agofix resizing while the alternate spell checker is running
David Lawrence Ramsey [Mon, 25 Jul 2005 23:40:12 +0000 (23:40 +0000)]
fix resizing while the alternate spell checker is running

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

19 years agoadd various fill-related cleanups, plus some related cosmetic and
David Lawrence Ramsey [Mon, 25 Jul 2005 22:54:16 +0000 (22:54 +0000)]
add various fill-related cleanups, plus some related cosmetic and
formatting fixes

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

19 years agosince the total number of lines in a file is the same as the number of
David Lawrence Ramsey [Mon, 25 Jul 2005 21:23:11 +0000 (21:23 +0000)]
since the total number of lines in a file is the same as the number of
its last line when all its lines are numbered properly, use that in
place of openfile->totlines, and eliminate references to
openfile->totlines

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

19 years ago*really* fix mouse support breakage
David Lawrence Ramsey [Mon, 25 Jul 2005 20:36:27 +0000 (20:36 +0000)]
*really* fix mouse support breakage

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

19 years agoreally fix mouse support breakage
David Lawrence Ramsey [Mon, 25 Jul 2005 20:28:21 +0000 (20:28 +0000)]
really fix mouse support breakage

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

19 years agofix mouse support breakage
David Lawrence Ramsey [Mon, 25 Jul 2005 20:08:18 +0000 (20:08 +0000)]
fix mouse support breakage

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

19 years agoadd more miscellaneous mouse support-related fixes, and move
David Lawrence Ramsey [Mon, 25 Jul 2005 20:01:57 +0000 (20:01 +0000)]
add more miscellaneous mouse support-related fixes, and move
do_statusbar_output() after do_statusbar_mouse(), to match do_output()'s
being after do_mouse() in nano.c

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

19 years agoin do_mouse(), avoid redundant screen updates by using edit_redraw()
David Lawrence Ramsey [Mon, 25 Jul 2005 19:04:20 +0000 (19:04 +0000)]
in do_mouse(), avoid redundant screen updates by using edit_redraw()
instead of edit_refresh(), and remove now-erroneous code that disables
setting the mark while in view mode

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

19 years agocosmetic fixes
David Lawrence Ramsey [Mon, 25 Jul 2005 18:59:24 +0000 (18:59 +0000)]
cosmetic fixes

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

19 years agosimplify do_wordlinechar_count()'s final message a bit more
David Lawrence Ramsey [Mon, 25 Jul 2005 04:46:58 +0000 (04:46 +0000)]
simplify do_wordlinechar_count()'s final message a bit more

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

19 years agorename do_word_count() do_wordlinechar_count(), and simplify its final
David Lawrence Ramsey [Mon, 25 Jul 2005 04:21:46 +0000 (04:21 +0000)]
rename do_word_count() do_wordlinechar_count(), and simplify its final
message a bit

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

19 years agoexpand do_word_count() to also count the number of lines and characters
David Lawrence Ramsey [Mon, 25 Jul 2005 03:47:08 +0000 (03:47 +0000)]
expand do_word_count() to also count the number of lines and characters
in the file or selection, as wc does

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

19 years agomove mark setting, deleting, backspacing, tabbing, and entering of
David Lawrence Ramsey [Mon, 25 Jul 2005 02:41:59 +0000 (02:41 +0000)]
move mark setting, deleting, backspacing, tabbing, and entering of
newlines to text.c too

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

19 years agoreorder a few functions
David Lawrence Ramsey [Mon, 25 Jul 2005 02:33:45 +0000 (02:33 +0000)]
reorder a few functions

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

19 years agomake color_to_short() actually return a short
David Lawrence Ramsey [Sun, 24 Jul 2005 20:23:40 +0000 (20:23 +0000)]
make color_to_short() actually return a short

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

19 years agoremove erroneous static declaration of fill; it's global now, since
David Lawrence Ramsey [Sun, 24 Jul 2005 19:59:54 +0000 (19:59 +0000)]
remove erroneous static declaration of fill; it's global now, since
text.c needs it too

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

19 years agomove advanced text operations (command execution in a buffer, wrapping,
David Lawrence Ramsey [Sun, 24 Jul 2005 19:57:51 +0000 (19:57 +0000)]
move advanced text operations (command execution in a buffer, wrapping,
spell checking, justifying, and word counting) to their own source file,
text.c

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

19 years agocosmetic fix
David Lawrence Ramsey [Sun, 24 Jul 2005 17:06:56 +0000 (17:06 +0000)]
cosmetic fix

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

19 years agoreally fix inconsistency
David Lawrence Ramsey [Sat, 23 Jul 2005 22:57:46 +0000 (22:57 +0000)]
really fix inconsistency

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

19 years agofix inconsistency
David Lawrence Ramsey [Sat, 23 Jul 2005 22:50:02 +0000 (22:50 +0000)]
fix inconsistency

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

19 years agoeliminate still more redundant screen updates in edit_scroll()
David Lawrence Ramsey [Sat, 23 Jul 2005 21:06:22 +0000 (21:06 +0000)]
eliminate still more redundant screen updates in edit_scroll()

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

19 years agoremove more redundant screen updates in edit_scroll(), and add a few
David Lawrence Ramsey [Sat, 23 Jul 2005 20:39:41 +0000 (20:39 +0000)]
remove more redundant screen updates in edit_scroll(), and add a few
more miscellaneous cleanups

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

19 years agofix alternate spell checker breakage: don't lose colors after using it
David Lawrence Ramsey [Sat, 23 Jul 2005 00:41:45 +0000 (00:41 +0000)]
fix alternate spell checker breakage: don't lose colors after using it
on a file

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

19 years agoallow scrolling more than editwinrows lines via edit_scroll(), take 2
David Lawrence Ramsey [Fri, 22 Jul 2005 23:17:19 +0000 (23:17 +0000)]
allow scrolling more than editwinrows lines via edit_scroll(), take 2

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

19 years agorevert broken edit_scroll() changes for now
David Lawrence Ramsey [Fri, 22 Jul 2005 22:56:03 +0000 (22:56 +0000)]
revert broken edit_scroll() changes for now

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

19 years agoallow scrolling more than editwinrows lines via edit_scroll()
David Lawrence Ramsey [Fri, 22 Jul 2005 22:19:36 +0000 (22:19 +0000)]
allow scrolling more than editwinrows lines via edit_scroll()

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

19 years agodisplay invalid multibyte sequences as Unicode FFFD, take 2; also clean
David Lawrence Ramsey [Thu, 21 Jul 2005 22:12:03 +0000 (22:12 +0000)]
display invalid multibyte sequences as Unicode FFFD, take 2; also clean
up the character-parsing functions

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

19 years agomore function reordering
David Lawrence Ramsey [Thu, 21 Jul 2005 18:05:27 +0000 (18:05 +0000)]
more function reordering

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

19 years agocosmetic fixes
David Lawrence Ramsey [Thu, 21 Jul 2005 17:52:36 +0000 (17:52 +0000)]
cosmetic fixes

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

19 years agoadd comment and formatting fixes, and remove now-useless global-specific code
David Lawrence Ramsey [Thu, 21 Jul 2005 05:56:42 +0000 (05:56 +0000)]
add comment and formatting fixes, and remove now-useless global-specific code

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

19 years agoin do_find_bracket(), add comments and minor cleanups
David Lawrence Ramsey [Thu, 21 Jul 2005 02:20:01 +0000 (02:20 +0000)]
in do_find_bracket(), add comments and minor cleanups

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

19 years agomove do_(next|prev)_word(_void())? to move.c too
David Lawrence Ramsey [Wed, 20 Jul 2005 21:31:19 +0000 (21:31 +0000)]
move do_(next|prev)_word(_void())? to move.c too

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

19 years agoadd miscellaneous color and openfilestruct cleanups, and move the
David Lawrence Ramsey [Wed, 20 Jul 2005 21:08:38 +0000 (21:08 +0000)]
add miscellaneous color and openfilestruct cleanups, and move the
openfilestruct functions to nano.c, since they're no longer specific to
file operations

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

19 years agomove the paragraph-searching functions to move.c, as they're movement
David Lawrence Ramsey [Wed, 20 Jul 2005 19:24:11 +0000 (19:24 +0000)]
move the paragraph-searching functions to move.c, as they're movement
functions, and make them call check_statusblank() too; also reorder some
other movement functions

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 19 Jul 2005 18:46:02 +0000 (18:46 +0000)]
comment fix

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

19 years agoDoh, fixup ChangeLog.
Jordi Mallach [Tue, 19 Jul 2005 17:10:05 +0000 (17:10 +0000)]
Doh, fixup ChangeLog.

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

19 years agoUpdated Malay translation from the TP.
Jordi Mallach [Tue, 19 Jul 2005 15:09:09 +0000 (15:09 +0000)]
Updated Malay translation from the TP.

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

19 years agoUpdate French manpages by Jean-Philippe Guérard.
Jordi Mallach [Tue, 19 Jul 2005 15:07:35 +0000 (15:07 +0000)]
Update French manpages by Jean-Philippe Guérard.

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

19 years agoin nanogetstr(), make sure that magichistory is properly updated when we
David Lawrence Ramsey [Tue, 19 Jul 2005 05:58:00 +0000 (05:58 +0000)]
in nanogetstr(), make sure that magichistory is properly updated when we
change it and then move up

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

19 years agoin find_history() and get_history_completion(), make parameters const
David Lawrence Ramsey [Tue, 19 Jul 2005 04:53:45 +0000 (04:53 +0000)]
in find_history() and get_history_completion(), make parameters const
where possible

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

19 years agoadd missing blank lines
David Lawrence Ramsey [Tue, 19 Jul 2005 04:50:55 +0000 (04:50 +0000)]
add missing blank lines

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

19 years agoin mbstrchr(), don't count matches between valid and invalid multibyte
David Lawrence Ramsey [Mon, 18 Jul 2005 19:47:13 +0000 (19:47 +0000)]
in mbstrchr(), don't count matches between valid and invalid multibyte
sequences anymore, for consistency

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

19 years agofor consistency, revert handling of cases where a search string and a
David Lawrence Ramsey [Mon, 18 Jul 2005 19:29:27 +0000 (19:29 +0000)]
for consistency, revert handling of cases where a search string and a
match to it are not the same length in bytes, since the same technique
can't be made to work with tab completion matches

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

19 years agomiscellaneous minor fixes
David Lawrence Ramsey [Mon, 18 Jul 2005 18:43:39 +0000 (18:43 +0000)]
miscellaneous minor fixes

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

19 years agoUpdated French translation from the TP.
Jordi Mallach [Mon, 18 Jul 2005 14:37:11 +0000 (14:37 +0000)]
Updated French translation from the TP.

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

19 years agomake sure that the current position in the history list is properly set
David Lawrence Ramsey [Mon, 18 Jul 2005 07:48:50 +0000 (07:48 +0000)]
make sure that the current position in the history list is properly set
to the bottom if we cancel out of the prompt

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

19 years agocomment fix
David Lawrence Ramsey [Mon, 18 Jul 2005 05:23:04 +0000 (05:23 +0000)]
comment fix

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

19 years agoproperly handle cases where a search string and a match to it are not
David Lawrence Ramsey [Mon, 18 Jul 2005 05:17:59 +0000 (05:17 +0000)]
properly handle cases where a search string and a match to it are not
the same length in bytes, i.e, when the latter contains invalid
multibyte characters interpreted as normal characters

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

19 years agoadd comment
David Lawrence Ramsey [Mon, 18 Jul 2005 05:16:04 +0000 (05:16 +0000)]
add comment

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

19 years agodon't display invalid multibyte sequences as Unicode 0xFFFD in
David Lawrence Ramsey [Mon, 18 Jul 2005 03:23:37 +0000 (03:23 +0000)]
don't display invalid multibyte sequences as Unicode 0xFFFD in
display_string() anymore, as it's inconsistent with how we handle them
elsewhere

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

19 years agobetter edit_scroll() redundancy fix
David Lawrence Ramsey [Sun, 17 Jul 2005 22:51:44 +0000 (22:51 +0000)]
better edit_scroll() redundancy fix

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

19 years agofix edit_scroll() redundancy
David Lawrence Ramsey [Sun, 17 Jul 2005 15:42:21 +0000 (15:42 +0000)]
fix edit_scroll() redundancy

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

19 years agocomment fixes
David Lawrence Ramsey [Sun, 17 Jul 2005 15:40:49 +0000 (15:40 +0000)]
comment fixes

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

19 years agoper DB'S patch, in do_spell(), when displaying an error message from
David Lawrence Ramsey [Sun, 17 Jul 2005 03:50:22 +0000 (03:50 +0000)]
per DB'S patch, in do_spell(), when displaying an error message from
do_(int|alt)_speller(), don't display the error message corresponding to
errno if errno is zero

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

19 years agochange NANO_WIDE #define to ENABLE_UTF8, as the latter is clearer
David Lawrence Ramsey [Sun, 17 Jul 2005 02:40:07 +0000 (02:40 +0000)]
change NANO_WIDE #define to ENABLE_UTF8, as the latter is clearer

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

19 years agofix glitch in edit_scroll() where scrolling up to the top line of the
David Lawrence Ramsey [Sun, 17 Jul 2005 02:19:47 +0000 (02:19 +0000)]
fix glitch in edit_scroll() where scrolling up to the top line of the
file with fewer than nlines lines available to scroll would leave half
the screen unupdated

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

19 years agosimplify get_totals() (renamed get_totsize()) to only get the total
David Lawrence Ramsey [Sun, 17 Jul 2005 01:44:35 +0000 (01:44 +0000)]
simplify get_totals() (renamed get_totsize()) to only get the total
number of characters, and eliminate dependence on its old ability to get
the total number of lines by renumber()ing when necessary and using the
number of the last line of a filestruct

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

19 years agoadd missing check_statusblank() calls
David Lawrence Ramsey [Sun, 17 Jul 2005 00:01:18 +0000 (00:01 +0000)]
add missing check_statusblank() calls

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

19 years agospeed up character output, and fix edit_refresh() breakage
David Lawrence Ramsey [Sat, 16 Jul 2005 23:36:10 +0000 (23:36 +0000)]
speed up character output, and fix edit_refresh() breakage

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

19 years agoproperly overhaul edit_scroll() to update the screen on its own this
David Lawrence Ramsey [Sat, 16 Jul 2005 22:50:30 +0000 (22:50 +0000)]
properly overhaul edit_scroll() to update the screen on its own this
time, convert the vertical movement functions to use the new version of
it, and simplify them where possible

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

19 years agoreally fix color breakage by decoupling edit_update() and
David Lawrence Ramsey [Sat, 16 Jul 2005 22:47:12 +0000 (22:47 +0000)]
really fix color breakage by decoupling edit_update() and
edit_refresh(); edit_update() is only called without edit_refresh() in
do_gotolinecolumn() if allow_update is FALSE, and in edit_refresh()
itself if edittop is out of range of current

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

19 years agocosmetic and #ifdef fixes
David Lawrence Ramsey [Sat, 16 Jul 2005 22:35:11 +0000 (22:35 +0000)]
cosmetic and #ifdef fixes

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

19 years agofix color breakage; also, in main(), when opening files with
David Lawrence Ramsey [Sat, 16 Jul 2005 07:06:36 +0000 (07:06 +0000)]
fix color breakage; also, in main(), when opening files with
"+LINE,COLUMN" arguments on the command line, don't update the screen
when moving to their specified lines and columns

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

19 years agocomment fix
David Lawrence Ramsey [Sat, 16 Jul 2005 03:23:56 +0000 (03:23 +0000)]
comment fix

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