]> git.wh0rd.org Git - nano.git/log
nano.git
18 years agocosmetic fix
David Lawrence Ramsey [Tue, 15 Nov 2005 18:42:56 +0000 (18:42 +0000)]
cosmetic fix

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

18 years agocomment fix
David Lawrence Ramsey [Tue, 15 Nov 2005 06:47:22 +0000 (06:47 +0000)]
comment fix

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

18 years agorename the NANO_SMALL #define to NANO_TINY
David Lawrence Ramsey [Tue, 15 Nov 2005 03:17:35 +0000 (03:17 +0000)]
rename the NANO_SMALL #define to NANO_TINY

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

18 years agoper Mike Frysinger's patch, don't install the localized versions of the
David Lawrence Ramsey [Tue, 15 Nov 2005 02:39:20 +0000 (02:39 +0000)]
per Mike Frysinger's patch, don't install the localized versions of the
manpages if nano is built with --disable-nls

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

18 years agoformatting fix
David Lawrence Ramsey [Tue, 15 Nov 2005 02:09:03 +0000 (02:09 +0000)]
formatting fix

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

18 years agofor functions originally adapted from other sources, invoke LGPL clause
David Lawrence Ramsey [Mon, 14 Nov 2005 23:02:03 +0000 (23:02 +0000)]
for functions originally adapted from other sources, invoke LGPL clause
3 to convert all LGPLed functions to GPLed ones, so that we don't have
to include a copy of the LGPL

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

18 years agofix copyright years on source files; all functions in browser.c were
David Lawrence Ramsey [Mon, 14 Nov 2005 22:20:35 +0000 (22:20 +0000)]
fix copyright years on source files; all functions in browser.c were
originally added in 2001; the oldest function in color.c is
do_colorinit() (now color_init()), which was originally added in 2001;
the oldest function in chars.c is revstrstr(), which was originally
added in 2001; the oldest function in help.c is do_help(), which was
originally added in 2000; the oldest function in prompt.c is statusq()
(now do_prompt()), which was originally added before 0.6.6, which was
apparently in 1999; all functions in rcfile.c were originally added in
2001; one of the oldest functions in search.c is do_search(), which was
originally added in 0.2.7, which was apparently in 1999; and one of the
oldest functions in text.c is do_wrap(), which was originally added in
0.3.1, which was apparently in 1999; also, for functions originally
adapted from other sources, add notices from the original files, as we
do with the tab completion functions adapted from busybox

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

18 years agocosmetic fixes
David Lawrence Ramsey [Mon, 14 Nov 2005 21:32:42 +0000 (21:32 +0000)]
cosmetic fixes

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

18 years agoremove unneeded blank line
David Lawrence Ramsey [Sun, 13 Nov 2005 07:05:37 +0000 (07:05 +0000)]
remove unneeded blank line

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

18 years agocosmetic fixes
David Lawrence Ramsey [Sat, 12 Nov 2005 20:04:18 +0000 (20:04 +0000)]
cosmetic fixes

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

19 years agowhen building, automatically generate an HTML version of the info page,
David Lawrence Ramsey [Sat, 12 Nov 2005 07:50:03 +0000 (07:50 +0000)]
when building, automatically generate an HTML version of the info page,
nano.html

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

19 years agoin nano.texi, fix inconsistent punctuation
David Lawrence Ramsey [Sat, 12 Nov 2005 07:23:39 +0000 (07:23 +0000)]
in nano.texi, fix inconsistent punctuation

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

19 years agoin get_page_start(), fix test so that we scroll through the line in
David Lawrence Ramsey [Sat, 12 Nov 2005 05:20:14 +0000 (05:20 +0000)]
in get_page_start(), fix test so that we scroll through the line in
8-character chunks when COLS is greater than 8, not when COLS is greater
than 9

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

19 years agochangelog fix
David Lawrence Ramsey [Fri, 11 Nov 2005 17:05:27 +0000 (17:05 +0000)]
changelog fix

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

19 years agoin nano.texi, add more wording fixes, sort the configure options more
David Lawrence Ramsey [Fri, 11 Nov 2005 17:04:17 +0000 (17:04 +0000)]
in nano.texi, add more wording fixes, sort the configure options more
consistently, and add missing --disable-utf8 option

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

19 years agoin nano.texi, per Mike Frysinger's patch, add missing configure options,
David Lawrence Ramsey [Fri, 11 Nov 2005 16:42:45 +0000 (16:42 +0000)]
in nano.texi, per Mike Frysinger's patch, add missing configure options,
so that all of them are documented

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

19 years agocomment fix
David Lawrence Ramsey [Fri, 11 Nov 2005 05:21:38 +0000 (05:21 +0000)]
comment fix

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

19 years agofix the last of the breakage (I hope) in find_paragraph() and
David Lawrence Ramsey [Fri, 11 Nov 2005 05:13:28 +0000 (05:13 +0000)]
fix the last of the breakage (I hope) in find_paragraph() and
do_justify()

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

19 years agofix still more find_paragraph() breakage
David Lawrence Ramsey [Fri, 11 Nov 2005 04:14:33 +0000 (04:14 +0000)]
fix still more find_paragraph() breakage

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

19 years agofix more find_paragraph() breakage
David Lawrence Ramsey [Fri, 11 Nov 2005 03:55:52 +0000 (03:55 +0000)]
fix more find_paragraph() breakage

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

19 years agofix yet more do_justify() breakage
David Lawrence Ramsey [Fri, 11 Nov 2005 03:17:44 +0000 (03:17 +0000)]
fix yet more do_justify() breakage

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

19 years agofix still more do_justify() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 21:57:56 +0000 (21:57 +0000)]
fix still more do_justify() breakage

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

19 years agofix more do_justify() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 21:53:46 +0000 (21:53 +0000)]
fix more do_justify() breakage

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

19 years agofix breakage in both backup_lines() and do_justify(); the latter's
David Lawrence Ramsey [Thu, 10 Nov 2005 21:20:32 +0000 (21:20 +0000)]
fix breakage in both backup_lines() and do_justify(); the latter's
return value is unneeded, as current will point to the same line when
it's done, and making first_par_line point to current in the former
ensures that the two will properly stay in sync

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

19 years agomore cosmetic fixes
David Lawrence Ramsey [Thu, 10 Nov 2005 19:56:26 +0000 (19:56 +0000)]
more cosmetic fixes

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

19 years agofix more do_justify() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 19:28:27 +0000 (19:28 +0000)]
fix more do_justify() breakage

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

19 years agorevert change to do_justify(), since it's used when fileage may be
David Lawrence Ramsey [Thu, 10 Nov 2005 16:46:50 +0000 (16:46 +0000)]
revert change to do_justify(), since it's used when fileage may be
temporarily out of range

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

19 years agouse more intuitive descriptions for the scrolling keys
David Lawrence Ramsey [Thu, 10 Nov 2005 07:40:55 +0000 (07:40 +0000)]
use more intuitive descriptions for the scrolling keys

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

19 years agomore comment fixes
David Lawrence Ramsey [Thu, 10 Nov 2005 07:11:51 +0000 (07:11 +0000)]
more comment fixes

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

19 years agocomment fix
David Lawrence Ramsey [Thu, 10 Nov 2005 06:25:01 +0000 (06:25 +0000)]
comment fix

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

19 years agofix still more find_paragraph() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 06:19:47 +0000 (06:19 +0000)]
fix still more find_paragraph() breakage

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

19 years agomore do_justify() fixes
David Lawrence Ramsey [Thu, 10 Nov 2005 06:07:57 +0000 (06:07 +0000)]
more do_justify() fixes

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

19 years agofix yet more do_justify() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 06:01:41 +0000 (06:01 +0000)]
fix yet more do_justify() breakage

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

19 years agocomment fixes
David Lawrence Ramsey [Thu, 10 Nov 2005 05:26:37 +0000 (05:26 +0000)]
comment fixes

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

19 years agorevert change to edit_update(), since it's used when fileage may be
David Lawrence Ramsey [Thu, 10 Nov 2005 05:20:25 +0000 (05:20 +0000)]
revert change to edit_update(), since it's used when fileage may be
temporarily out of range, and fix a comment

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

19 years agotweak do_wrap(), remove_magicline(), edit_scroll(), and edit_update() to
David Lawrence Ramsey [Thu, 10 Nov 2005 04:27:30 +0000 (04:27 +0000)]
tweak do_wrap(), remove_magicline(), edit_scroll(), and edit_update() to
rely on fileage and filebot instead of NULL for their checks to detect
the top or bottom of the file

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

19 years agocomment fix
David Lawrence Ramsey [Thu, 10 Nov 2005 04:14:51 +0000 (04:14 +0000)]
comment fix

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

19 years agotweak do_justify() to rely on fileage instead of NULL for its check to
David Lawrence Ramsey [Thu, 10 Nov 2005 04:03:05 +0000 (04:03 +0000)]
tweak do_justify() to rely on fileage instead of NULL for its check to
detect the top of the file

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

19 years agofix still *more* backup_lines() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 03:40:45 +0000 (03:40 +0000)]
fix still *more* backup_lines() breakage

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

19 years agofix still more backup_lines() breakage
David Lawrence Ramsey [Thu, 10 Nov 2005 03:32:59 +0000 (03:32 +0000)]
fix still more backup_lines() breakage

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

19 years agofix still more backup_lines() breakage
David Lawrence Ramsey [Wed, 9 Nov 2005 23:27:51 +0000 (23:27 +0000)]
fix still more backup_lines() breakage

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

19 years agomore do_justify() breakage fixes, and miscellaneous comment fixes
David Lawrence Ramsey [Wed, 9 Nov 2005 23:06:44 +0000 (23:06 +0000)]
more do_justify() breakage fixes, and miscellaneous comment fixes

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

19 years agofix more backup_lines() breakage
David Lawrence Ramsey [Wed, 9 Nov 2005 22:59:51 +0000 (22:59 +0000)]
fix more backup_lines() breakage

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

19 years agofix break_lines() breakage
David Lawrence Ramsey [Wed, 9 Nov 2005 22:42:37 +0000 (22:42 +0000)]
fix break_lines() breakage

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

19 years agofix more find_paragraph() breakage
David Lawrence Ramsey [Wed, 9 Nov 2005 21:53:21 +0000 (21:53 +0000)]
fix more find_paragraph() breakage

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

19 years agocosmetic fixes
David Lawrence Ramsey [Wed, 9 Nov 2005 20:33:42 +0000 (20:33 +0000)]
cosmetic fixes

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

19 years agofix more do_justify() breakage
David Lawrence Ramsey [Wed, 9 Nov 2005 20:17:12 +0000 (20:17 +0000)]
fix more do_justify() breakage

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

19 years agofix breakage in find_paragraph() and do_justify()
David Lawrence Ramsey [Wed, 9 Nov 2005 19:51:48 +0000 (19:51 +0000)]
fix breakage in find_paragraph() and do_justify()

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

19 years agoadd comment
David Lawrence Ramsey [Wed, 9 Nov 2005 19:22:29 +0000 (19:22 +0000)]
add comment

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

19 years agotweak find_paragraph() and do_justify() to remove the assumption that
David Lawrence Ramsey [Wed, 9 Nov 2005 19:06:01 +0000 (19:06 +0000)]
tweak find_paragraph() and do_justify() to remove the assumption that
the file always ends in a magicline; note that the latter isn't
completely fixed yet

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

19 years agofinish tweaking backup_lines() to remove the assumption that the file
David Lawrence Ramsey [Wed, 9 Nov 2005 18:58:04 +0000 (18:58 +0000)]
finish tweaking backup_lines() to remove the assumption that the file
always ends in a magicline, and add documentation fixes

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

19 years agominor backup_lines() cleanups
David Lawrence Ramsey [Wed, 9 Nov 2005 18:49:16 +0000 (18:49 +0000)]
minor backup_lines() cleanups

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

19 years agotweak begpar() to rely on fileage instead of NULL for its check to
David Lawrence Ramsey [Wed, 9 Nov 2005 18:26:44 +0000 (18:26 +0000)]
tweak begpar() to rely on fileage instead of NULL for its check to
detect the top of the file, and make it return NULL if foo is NULL, just
as inpar() does

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

19 years agocomment fix
David Lawrence Ramsey [Wed, 9 Nov 2005 17:01:33 +0000 (17:01 +0000)]
comment fix

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

19 years agoin get_next_filename(), store the value of digits(ULONG_MAX) in a
David Lawrence Ramsey [Wed, 9 Nov 2005 15:13:00 +0000 (15:13 +0000)]
in get_next_filename(), store the value of digits(ULONG_MAX) in a
static, since it doesn't change and hence doesn't need to be
recalculated

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

19 years agotweak do_para_end() to remove the assumption that the file always ends
David Lawrence Ramsey [Wed, 9 Nov 2005 04:20:55 +0000 (04:20 +0000)]
tweak do_para_end() to remove the assumption that the file always ends
in a magicline

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

19 years agocosmetic fixes
David Lawrence Ramsey [Wed, 9 Nov 2005 03:44:23 +0000 (03:44 +0000)]
cosmetic fixes

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

19 years agoremove unneeded code
David Lawrence Ramsey [Wed, 9 Nov 2005 03:37:50 +0000 (03:37 +0000)]
remove unneeded code

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

19 years agocomment fix
David Lawrence Ramsey [Wed, 9 Nov 2005 02:23:54 +0000 (02:23 +0000)]
comment fix

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

19 years agosimplify cut_line() further
David Lawrence Ramsey [Wed, 9 Nov 2005 02:13:07 +0000 (02:13 +0000)]
simplify cut_line() further

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

19 years agoadd prompt.c to the list of translated files, since it now has
David Lawrence Ramsey [Wed, 9 Nov 2005 00:34:52 +0000 (00:34 +0000)]
add prompt.c to the list of translated files, since it now has
translatable strings

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

19 years agocomment fix
David Lawrence Ramsey [Wed, 9 Nov 2005 00:25:30 +0000 (00:25 +0000)]
comment fix

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

19 years agoin cut_line(), since placewewant will always be zero after the line is
David Lawrence Ramsey [Wed, 9 Nov 2005 00:23:12 +0000 (00:23 +0000)]
in cut_line(), since placewewant will always be zero after the line is
cut, set it to zero directly instead of assigning it the value of
xplustabs()

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

19 years ago*really* make deleting and cutting text consistent with each other, and
David Lawrence Ramsey [Wed, 9 Nov 2005 00:08:29 +0000 (00:08 +0000)]
*really* make deleting and cutting text consistent with each other, and
fix comments

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

19 years agomore fixes for files that don't end in magiclines: make cut_line() cut
David Lawrence Ramsey [Tue, 8 Nov 2005 23:59:29 +0000 (23:59 +0000)]
more fixes for files that don't end in magiclines: make cut_line() cut
the text of the current line (if any), minus the nonexistent newline,
when we're on the last line of the file, and make sure again that the
file isn't marked as modified if the magicline is deleted and we're
supposed to have one, as it's more consistent that way (a marked cut of
the magicline adds a newline to the cutbuffer, while deleting the
magicline adds nothing)

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

19 years agocosmetic fix
David Lawrence Ramsey [Tue, 8 Nov 2005 23:09:47 +0000 (23:09 +0000)]
cosmetic fix

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

19 years agorevert last change, as the new bahavior is consistent with the behavior
David Lawrence Ramsey [Tue, 8 Nov 2005 23:08:08 +0000 (23:08 +0000)]
revert last change, as the new bahavior is consistent with the behavior
when you cut the magicline with the mark

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

19 years agotweak do_delete() to not mark the file as modified if we delete the
David Lawrence Ramsey [Tue, 8 Nov 2005 22:59:10 +0000 (22:59 +0000)]
tweak do_delete() to not mark the file as modified if we delete the
newline before filebot and a magicline is added as a result, as it did
before the NO_NEWLINES flag was added

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

19 years agoadd missing changelog entry
David Lawrence Ramsey [Tue, 8 Nov 2005 19:40:59 +0000 (19:40 +0000)]
add missing changelog entry

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

19 years agoin do_alt_speller(), move the code that replaces the text of the current
David Lawrence Ramsey [Tue, 8 Nov 2005 19:15:58 +0000 (19:15 +0000)]
in do_alt_speller(), move the code that replaces the text of the current
file with the text of the spell-checked file into its own function,
replace_buffer()

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

19 years agomake do_int_spell_fix() and do_alt_speller() take the NO_NEWLINES flag
David Lawrence Ramsey [Tue, 8 Nov 2005 18:34:12 +0000 (18:34 +0000)]
make do_int_spell_fix() and do_alt_speller() take the NO_NEWLINES flag
into account

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

19 years agoinitialize the static pid_t pid in text.c, just in case
David Lawrence Ramsey [Tue, 8 Nov 2005 16:45:22 +0000 (16:45 +0000)]
initialize the static pid_t pid in text.c, just in case

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

19 years agotweak do_alt_speller() to remove the assumption that the file always
David Lawrence Ramsey [Tue, 8 Nov 2005 16:37:29 +0000 (16:37 +0000)]
tweak do_alt_speller() to remove the assumption that the file always
ends in a magicline

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

19 years agoremove unneeded blank line
David Lawrence Ramsey [Tue, 8 Nov 2005 04:55:59 +0000 (04:55 +0000)]
remove unneeded blank line

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

19 years agocosmetic fix
David Lawrence Ramsey [Tue, 8 Nov 2005 02:27:11 +0000 (02:27 +0000)]
cosmetic fix

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

19 years agocorrection: in mbwidth(), use the width of Unicode U+FFFD (Replacement
David Lawrence Ramsey [Tue, 8 Nov 2005 02:24:17 +0000 (02:24 +0000)]
correction: in mbwidth(), use the width of Unicode U+FFFD (Replacement
Character) instead of hardcoding a width of one for unprintable
characters

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

19 years agoin mbwidth(), if wcwidth() returns -1 for the character passed in, treat
David Lawrence Ramsey [Tue, 8 Nov 2005 02:20:22 +0000 (02:20 +0000)]
in mbwidth(), if wcwidth() returns -1 for the character passed in, treat
the character as being one column wide instead of zero columns wide,
since there are display problems that crop up with the latter approach

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 8 Nov 2005 02:07:13 +0000 (02:07 +0000)]
comment fix

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

19 years agomake sure we refresh the statusbar prompt text when tab-completing or
David Lawrence Ramsey [Tue, 8 Nov 2005 01:49:14 +0000 (01:49 +0000)]
make sure we refresh the statusbar prompt text when tab-completing or
moving through history

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

19 years agoactually use statusbar_pww in the statusbar prompt code to cut down on
David Lawrence Ramsey [Mon, 7 Nov 2005 21:45:44 +0000 (21:45 +0000)]
actually use statusbar_pww in the statusbar prompt code to cut down on
redundant updates, add related functions to do that, and rename a few of
the statusbar prompt functions for consistency

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

19 years agoadd the statusbar prompt's equivalent of placewewant,statusbar_pww, to
David Lawrence Ramsey [Mon, 7 Nov 2005 06:32:07 +0000 (06:32 +0000)]
add the statusbar prompt's equivalent of placewewant,statusbar_pww, to
prompt.c, and convert (most of) its functions to use it

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

19 years agoin update_line(), remove now-unneeded logic that set the index parameter
David Lawrence Ramsey [Mon, 7 Nov 2005 06:20:02 +0000 (06:20 +0000)]
in update_line(), remove now-unneeded logic that set the index parameter
to zero if the fileptr parameter didn't point to current

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

19 years agomove do_verbatim_input() from nano.c to text.c, since it's an advanced
David Lawrence Ramsey [Mon, 7 Nov 2005 06:06:05 +0000 (06:06 +0000)]
move do_verbatim_input() from nano.c to text.c, since it's an advanced
text-based operation

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

19 years agoreorder functions
David Lawrence Ramsey [Sat, 5 Nov 2005 20:04:16 +0000 (20:04 +0000)]
reorder functions

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

19 years agomove functions specific to the file browser to their own source file,
David Lawrence Ramsey [Sat, 5 Nov 2005 20:01:11 +0000 (20:01 +0000)]
move functions specific to the file browser to their own source file,
browser.c

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

19 years agotweak do_last_line() to remove the assumption that the file always ends
David Lawrence Ramsey [Sat, 5 Nov 2005 17:50:06 +0000 (17:50 +0000)]
tweak do_last_line() to remove the assumption that the file always ends
in a magicline

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

19 years agofix changelog entry
David Lawrence Ramsey [Sat, 5 Nov 2005 17:37:39 +0000 (17:37 +0000)]
fix changelog entry

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

19 years agoadd new -L/--nonewlines command line option, and new "nonewlines" rcfile
David Lawrence Ramsey [Sat, 5 Nov 2005 17:35:44 +0000 (17:35 +0000)]
add new -L/--nonewlines command line option, and new "nonewlines" rcfile
option, to control whether nano adds magiclines to the ends of files

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

19 years agotweak open_buffer() and read_file() to remove the assumption that the
David Lawrence Ramsey [Sat, 5 Nov 2005 17:20:39 +0000 (17:20 +0000)]
tweak open_buffer() and read_file() to remove the assumption that the
file always ends in a magicline

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

19 years agoformatting fix
David Lawrence Ramsey [Sat, 5 Nov 2005 06:08:44 +0000 (06:08 +0000)]
formatting fix

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

19 years agocosmetic fixes
David Lawrence Ramsey [Sat, 5 Nov 2005 04:59:00 +0000 (04:59 +0000)]
cosmetic fixes

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

19 years agocomment fix
David Lawrence Ramsey [Fri, 4 Nov 2005 16:34:51 +0000 (16:34 +0000)]
comment fix

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

19 years agofix inconsistent wording in nano.texi
David Lawrence Ramsey [Fri, 4 Nov 2005 06:43:02 +0000 (06:43 +0000)]
fix inconsistent wording in nano.texi

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

19 years agofix breakage
David Lawrence Ramsey [Fri, 4 Nov 2005 06:21:39 +0000 (06:21 +0000)]
fix breakage

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

19 years agosimplify
David Lawrence Ramsey [Fri, 4 Nov 2005 05:59:41 +0000 (05:59 +0000)]
simplify

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

19 years agotweak write_file() to remove the assumption that the file always ends in
David Lawrence Ramsey [Fri, 4 Nov 2005 05:44:01 +0000 (05:44 +0000)]
tweak write_file() to remove the assumption that the file always ends in
a magicline, and remove a bit of apparently unneeded logic from
read_file()

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

19 years agoremove unneeded assert in do_rcfile()
David Lawrence Ramsey [Fri, 4 Nov 2005 04:10:09 +0000 (04:10 +0000)]
remove unneeded assert in do_rcfile()

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

19 years agorevert erroneous change
David Lawrence Ramsey [Thu, 3 Nov 2005 21:38:51 +0000 (21:38 +0000)]
revert erroneous change

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

19 years agotweak a few functions to remove the assumption that the file always ends
David Lawrence Ramsey [Thu, 3 Nov 2005 21:08:39 +0000 (21:08 +0000)]
tweak a few functions to remove the assumption that the file always ends
in a magicline, and to rely on fileage and filebot instead of NULL for
their checks to detect the top or bottom of the file

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

19 years agomove do_yesno() to prompt.c too
David Lawrence Ramsey [Thu, 3 Nov 2005 21:07:24 +0000 (21:07 +0000)]
move do_yesno() to prompt.c too

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