]> git.wh0rd.org Git - nano.git/log
nano.git
19 years agorevert diralphasort() tweak
David Lawrence Ramsey [Fri, 11 Feb 2005 16:02:54 +0000 (16:02 +0000)]
revert diralphasort() tweak

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

19 years agocosmetic fixes
David Lawrence Ramsey [Thu, 10 Feb 2005 02:26:08 +0000 (02:26 +0000)]
cosmetic fixes

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

19 years agoadd DB's overhauls of get_full_path() and check_writable_directory(),
David Lawrence Ramsey [Wed, 9 Feb 2005 18:56:21 +0000 (18:56 +0000)]
add DB's overhauls of get_full_path() and check_writable_directory(),
plus a few tweaks of mine

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

19 years agoremove inaccurate comment
David Lawrence Ramsey [Tue, 8 Feb 2005 21:48:15 +0000 (21:48 +0000)]
remove inaccurate comment

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

19 years agoadd missing #ifdef
David Lawrence Ramsey [Tue, 8 Feb 2005 20:39:28 +0000 (20:39 +0000)]
add missing #ifdef

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

19 years agoadd DB's pverhaul the tab completion code and a few related functions to
David Lawrence Ramsey [Tue, 8 Feb 2005 20:37:53 +0000 (20:37 +0000)]
add DB's pverhaul the tab completion code and a few related functions to
increase efficiency and support multibyte characters; also add a few
miscellaneous tweaks of mine

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

19 years agofix off-by-one error when calculating totsize in read_file(), introduced
David Lawrence Ramsey [Mon, 7 Feb 2005 05:31:51 +0000 (05:31 +0000)]
fix off-by-one error when calculating totsize in read_file(), introduced
when totsize was converted to hold the total number of multibyte
characters

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

19 years agoadd multibyte character support to indent_length(), convert the "smart
David Lawrence Ramsey [Mon, 31 Jan 2005 18:59:30 +0000 (18:59 +0000)]
add multibyte character support to indent_length(), convert the "smart
home" routines to use it (since it returns the number of bytes taken up
by spacing characters at the beginning of the line), and rearrange a few
initializations near asserts

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

19 years agowhen detecting wide character support in curses, check for get_wch()
David Lawrence Ramsey [Fri, 28 Jan 2005 20:09:45 +0000 (20:09 +0000)]
when detecting wide character support in curses, check for get_wch()
instead of wget_wch()

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

19 years agoproperly enable UTF-8 support when using slang
David Lawrence Ramsey [Fri, 28 Jan 2005 19:37:23 +0000 (19:37 +0000)]
properly enable UTF-8 support when using slang

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

19 years agotweak get_mouseinput() to work properly when -O/--morespace is used
David Lawrence Ramsey [Fri, 28 Jan 2005 19:11:51 +0000 (19:11 +0000)]
tweak get_mouseinput() to work properly when -O/--morespace is used

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

19 years agocosmetic fix
David Lawrence Ramsey [Thu, 27 Jan 2005 21:00:10 +0000 (21:00 +0000)]
cosmetic fix

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

19 years agomiscellaneous bits: change flags to an unsigned long and totsize to a
David Lawrence Ramsey [Thu, 27 Jan 2005 20:49:07 +0000 (20:49 +0000)]
miscellaneous bits: change flags to an unsigned long and totsize to a
size_t, store the number of multibyte characters instead of the number
of single-byte characters in totsize, and add a few formatting fixes

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

19 years agotweak do_mouse() to work properly when -O/--morespace is used
David Lawrence Ramsey [Thu, 27 Jan 2005 06:35:56 +0000 (06:35 +0000)]
tweak do_mouse() to work properly when -O/--morespace is used

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

19 years agoturn string functions that don't take length arguments into wrappers for
David Lawrence Ramsey [Tue, 25 Jan 2005 19:21:11 +0000 (19:21 +0000)]
turn string functions that don't take length arguments into wrappers for
the versions that take length arguments, add multibyte equivalent of
strlen(), and fix potential segfault in mbstrnlen()

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

19 years agoin edit_add(), make sure we use the right variable when painting marked
David Lawrence Ramsey [Mon, 24 Jan 2005 21:51:07 +0000 (21:51 +0000)]
in edit_add(), make sure we use the right variable when painting marked
selections, and add a few cosmetic tweaks

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

19 years agocomment fixes
David Lawrence Ramsey [Mon, 24 Jan 2005 14:57:57 +0000 (14:57 +0000)]
comment fixes

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

19 years agoadd another cleanup
David Lawrence Ramsey [Mon, 24 Jan 2005 01:21:09 +0000 (01:21 +0000)]
add another cleanup

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

19 years agoadd multibyte version of revstrcasestr()
David Lawrence Ramsey [Mon, 24 Jan 2005 01:14:17 +0000 (01:14 +0000)]
add multibyte version of revstrcasestr()

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

19 years agocosmetic and formatting fixes
David Lawrence Ramsey [Sat, 22 Jan 2005 20:49:14 +0000 (20:49 +0000)]
cosmetic and formatting fixes

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

19 years agorename a variable in the strcasestr() equivalent order to match DB's
David Lawrence Ramsey [Sat, 22 Jan 2005 19:56:16 +0000 (19:56 +0000)]
rename a variable in the strcasestr() equivalent order to match DB's
original cleanup of it, and port the change to the multibyte version too

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

19 years agoadd multibyte equivalent of strcasestr(), plus some miscellaneous
David Lawrence Ramsey [Sat, 22 Jan 2005 18:24:16 +0000 (18:24 +0000)]
add multibyte equivalent of strcasestr(), plus some miscellaneous
cleanups

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

19 years agoadd support for characters to the "c-file" regexes
David Lawrence Ramsey [Thu, 20 Jan 2005 16:40:24 +0000 (16:40 +0000)]
add support for characters to the "c-file" regexes

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

19 years agooops; replace the previous tweak with a proper merge of DB's code with
David Lawrence Ramsey [Wed, 19 Jan 2005 20:55:42 +0000 (20:55 +0000)]
oops; replace the previous tweak with a proper merge of DB's code with
the no_more_space() function

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

19 years agoadd DB's (slightly tweaked) changes to make resizing more flexible, and
David Lawrence Ramsey [Wed, 19 Jan 2005 19:52:42 +0000 (19:52 +0000)]
add DB's (slightly tweaked) changes to make resizing more flexible, and
also add his replacement of RETSIGTYPE with void, which avoids some
potential problems

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

19 years agoadd support for moving to the next or previous word at the statusbar
David Lawrence Ramsey [Tue, 18 Jan 2005 21:25:38 +0000 (21:25 +0000)]
add support for moving to the next or previous word at the statusbar
prompt

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

19 years agoformatting fixes
David Lawrence Ramsey [Tue, 18 Jan 2005 21:12:28 +0000 (21:12 +0000)]
formatting fixes

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

19 years agoreorganization: move revstrstr() back to chars.c, and move is_byte()
David Lawrence Ramsey [Tue, 18 Jan 2005 17:00:00 +0000 (17:00 +0000)]
reorganization: move revstrstr() back to chars.c, and move is_byte()
there too, since they both deal with strings and hence characters

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

19 years ago#define fixes
David Lawrence Ramsey [Tue, 18 Jan 2005 16:43:18 +0000 (16:43 +0000)]
#define fixes

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

19 years agoUpdated Brazilian Portuguese translation.
Jordi Mallach [Tue, 18 Jan 2005 09:41:30 +0000 (09:41 +0000)]
Updated Brazilian Portuguese translation.

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

19 years agoupdate documentation copyright years and modification dates
David Lawrence Ramsey [Mon, 17 Jan 2005 05:35:00 +0000 (05:35 +0000)]
update documentation copyright years and modification dates

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

19 years agovarious documentation updates
David Lawrence Ramsey [Mon, 17 Jan 2005 05:24:26 +0000 (05:24 +0000)]
various documentation updates

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

19 years agoadd -O/--morespace command line option, plus a corresponding Meta-O
David Lawrence Ramsey [Mon, 17 Jan 2005 05:06:55 +0000 (05:06 +0000)]
add -O/--morespace command line option, plus a corresponding Meta-O
toggle and a "morespace" rcfile option; when these are used, the
normally-unused blank line below the titlebar will be treated as part of
the edit window

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

19 years agomake sure the multibyte string operations operate using multibyte
David Lawrence Ramsey [Sun, 16 Jan 2005 20:05:36 +0000 (20:05 +0000)]
make sure the multibyte string operations operate using multibyte
character counts instead of byte character counts

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

19 years agoput revstrstr() back in utils.c, as it's case sensitive and hance should
David Lawrence Ramsey [Sun, 16 Jan 2005 19:30:48 +0000 (19:30 +0000)]
put revstrstr() back in utils.c, as it's case sensitive and hance should
work with multibyte strings as-is

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

19 years agoassert fixes
David Lawrence Ramsey [Sun, 16 Jan 2005 18:58:03 +0000 (18:58 +0000)]
assert fixes

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

19 years agostart making multibyte equivalents of the string functions in utils.c
David Lawrence Ramsey [Sun, 16 Jan 2005 18:49:19 +0000 (18:49 +0000)]
start making multibyte equivalents of the string functions in utils.c

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

19 years agoimprove the checks needed to determine if wide character support is
David Lawrence Ramsey [Sun, 16 Jan 2005 17:48:49 +0000 (17:48 +0000)]
improve the checks needed to determine if wide character support is
available

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

19 years agoremove duplicate prototype
David Lawrence Ramsey [Sun, 16 Jan 2005 17:01:51 +0000 (17:01 +0000)]
remove duplicate prototype

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

19 years agotweak do_next_word() and do_prev_word() to make sure they don't parse
David Lawrence Ramsey [Sat, 15 Jan 2005 15:05:20 +0000 (15:05 +0000)]
tweak do_next_word() and do_prev_word() to make sure they don't parse
the same multibyte character twice

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

19 years agomake do_prev_word() work with multibyte strings, and update various
David Lawrence Ramsey [Sat, 15 Jan 2005 00:34:57 +0000 (00:34 +0000)]
make do_prev_word() work with multibyte strings, and update various
comments in do_next_word() and do_prev_word()

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

19 years agoadd missing free()
David Lawrence Ramsey [Fri, 14 Jan 2005 22:08:18 +0000 (22:08 +0000)]
add missing free()

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

19 years agorevert previously added extra calls to move_mbright(); it's more
David Lawrence Ramsey [Fri, 14 Jan 2005 21:59:01 +0000 (21:59 +0000)]
revert previously added extra calls to move_mbright(); it's more
efficient to just add the return value of parse_char() directly instead
of having move_mbright() return it (except in the cursor movement
functions, which should be kept simple)

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

19 years agorename move_left() and move_right() to move_mbleft() and move_mbright(),
David Lawrence Ramsey [Fri, 14 Jan 2005 21:50:32 +0000 (21:50 +0000)]
rename move_left() and move_right() to move_mbleft() and move_mbright(),
and move them to chars.c

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

19 years agoadd multibyte and wide equivalents of isalnum(), make do_next_word()
David Lawrence Ramsey [Fri, 14 Jan 2005 21:33:47 +0000 (21:33 +0000)]
add multibyte and wide equivalents of isalnum(), make do_next_word()
work with multibyte strings, and tweak the "smart home" routines to use
move_right() for consistency

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

19 years agomore cosmetic fixes
David Lawrence Ramsey [Fri, 14 Jan 2005 21:26:38 +0000 (21:26 +0000)]
more cosmetic fixes

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

19 years agoadd missing changelog update
David Lawrence Ramsey [Fri, 14 Jan 2005 21:19:06 +0000 (21:19 +0000)]
add missing changelog update

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

19 years agomake do_statusbar_cut_text() respect the CUT_TO_END flag
David Lawrence Ramsey [Fri, 14 Jan 2005 21:10:14 +0000 (21:10 +0000)]
make do_statusbar_cut_text() respect the CUT_TO_END flag

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

19 years agoin src/Makefile.am, if we're installing and the "rnano" symlink already
David Lawrence Ramsey [Fri, 14 Jan 2005 18:47:42 +0000 (18:47 +0000)]
in src/Makefile.am, if we're installing and the "rnano" symlink already
exists, remove it so that we can create it again without an error

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

19 years agotweak new_file() to use mallocstrcpy() instead of charalloc() followed
David Lawrence Ramsey [Fri, 14 Jan 2005 17:17:11 +0000 (17:17 +0000)]
tweak new_file() to use mallocstrcpy() instead of charalloc() followed
by a null character initialization, for consistency

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

19 years agouse the right number of characters when calling the multibyte equivalent
David Lawrence Ramsey [Fri, 14 Jan 2005 15:27:33 +0000 (15:27 +0000)]
use the right number of characters when calling the multibyte equivalent
of strnlen()

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

19 years agominor fixes involving is_byte()
David Lawrence Ramsey [Fri, 14 Jan 2005 06:02:10 +0000 (06:02 +0000)]
minor fixes involving is_byte()

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

19 years agofix the previous fix
David Lawrence Ramsey [Fri, 14 Jan 2005 04:45:18 +0000 (04:45 +0000)]
fix the previous fix

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

19 years agofix the multibyte equivalent of strnlen() so that it actually works
David Lawrence Ramsey [Fri, 14 Jan 2005 04:38:48 +0000 (04:38 +0000)]
fix the multibyte equivalent of strnlen() so that it actually works

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

19 years agomove nstrnlen() to chars.c, and add a multibyte equivalent of strnlen()
David Lawrence Ramsey [Fri, 14 Jan 2005 04:22:14 +0000 (04:22 +0000)]
move nstrnlen() to chars.c, and add a multibyte equivalent of strnlen()
to it

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

19 years agoadd missing memory corruption fix to do_statusbar_output()
David Lawrence Ramsey [Fri, 14 Jan 2005 04:13:45 +0000 (04:13 +0000)]
add missing memory corruption fix to do_statusbar_output()

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

19 years agoadd asserts, plus a few more cosmetic fixes
David Lawrence Ramsey [Fri, 14 Jan 2005 03:22:54 +0000 (03:22 +0000)]
add asserts, plus a few more cosmetic fixes

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

19 years agocosmetic fixes
David Lawrence Ramsey [Thu, 13 Jan 2005 15:24:05 +0000 (15:24 +0000)]
cosmetic fixes

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

19 years agoa few forgotten copyright year updates
David Lawrence Ramsey [Wed, 12 Jan 2005 19:29:44 +0000 (19:29 +0000)]
a few forgotten copyright year updates

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

19 years agothe is_xxx_char() functions should take unsigned ints for consistency
David Lawrence Ramsey [Wed, 12 Jan 2005 18:46:08 +0000 (18:46 +0000)]
the is_xxx_char() functions should take unsigned ints for consistency

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

19 years agofix problem where displaying multiline regexes that have their start on
David Lawrence Ramsey [Wed, 12 Jan 2005 18:23:09 +0000 (18:23 +0000)]
fix problem where displaying multiline regexes that have their start on
one page of a line and their end on a different page of the same line
would paint past the end of the regex by tweaking DB's changes to add
multibyte string support to edit_add(); now calculate paintlen the same
way the original working code did, but keep accounting for multibyte
characters as DB'S new code did

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

19 years agouse actual UTF-8 in do_credits()
David Lawrence Ramsey [Wed, 12 Jan 2005 18:16:17 +0000 (18:16 +0000)]
use actual UTF-8 in do_credits()

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

19 years agoadd comments
David Lawrence Ramsey [Wed, 12 Jan 2005 16:20:18 +0000 (16:20 +0000)]
add comments

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

19 years agomake the "smart home" routines handle multibyte blank characters
David Lawrence Ramsey [Wed, 12 Jan 2005 05:10:53 +0000 (05:10 +0000)]
make the "smart home" routines handle multibyte blank characters

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

19 years agoadd minor fixes to make the displaying of invalid multibyte sequences
David Lawrence Ramsey [Wed, 12 Jan 2005 04:32:43 +0000 (04:32 +0000)]
add minor fixes to make the displaying of invalid multibyte sequences
work again

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

19 years agomassive updates to multibyte/wide character support; deal with multibyte
David Lawrence Ramsey [Wed, 12 Jan 2005 03:25:57 +0000 (03:25 +0000)]
massive updates to multibyte/wide character support; deal with multibyte
characters and strings instead of wide characters and strings as much as
possible, and move multibyte/wide character-specific functions into
their own source file, chars.c

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 11 Jan 2005 23:08:36 +0000 (23:08 +0000)]
comment fix

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

19 years agomiscellaneous high-level input routine fixes: in do_statusbar_input(),
David Lawrence Ramsey [Tue, 11 Jan 2005 23:05:05 +0000 (23:05 +0000)]
miscellaneous high-level input routine fixes: in do_statusbar_input(),
indicate when we run a normal shortcut's associated function with the
ran_func parameter, reset the statusbar cursor position when we do, and
don't call print_view_warning() when we try to run a function not
allowed in view mode; also apply the first of these changes to
do_input() so that both the edit window and statusbar routines are in
sync again

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

19 years agoremove display_string_len() again for the time being, since it's still
David Lawrence Ramsey [Sat, 8 Jan 2005 07:21:41 +0000 (07:21 +0000)]
remove display_string_len() again for the time being, since it's still
prone to off-by-one errors that lead to memory corruption and I can't
find anything obviously wrong with it; always allocate enough space for
len columns of text now; any extra space that isn't used will be removed
by the null_at() call at the end of display_string() anyway

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

19 years agomore minor shortcut-related fixes
David Lawrence Ramsey [Sat, 8 Jan 2005 06:16:19 +0000 (06:16 +0000)]
more minor shortcut-related fixes

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

19 years agoremove erroneous #ifdef around a currshortcut reference, do another int
David Lawrence Ramsey [Sat, 8 Jan 2005 06:04:19 +0000 (06:04 +0000)]
remove erroneous #ifdef around a currshortcut reference, do another int
-> bool conversion, and change a value of 0 for func to NULL in all
sc_init_one() calls

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

19 years agomiscellaneous cleanups for the multibyte parsing functions
David Lawrence Ramsey [Fri, 7 Jan 2005 22:39:43 +0000 (22:39 +0000)]
miscellaneous cleanups for the multibyte parsing functions

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

19 years agoadd a cosmetic fix and a fix for a potential compilation problem exposed
David Lawrence Ramsey [Fri, 7 Jan 2005 22:37:01 +0000 (22:37 +0000)]
add a cosmetic fix and a fix for a potential compilation problem exposed
by -pedantic

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

19 years agominor utility tweaks
David Lawrence Ramsey [Fri, 7 Jan 2005 19:02:47 +0000 (19:02 +0000)]
minor utility tweaks

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

19 years agoreally fix the memory corruption problem in display_string()
David Lawrence Ramsey [Wed, 5 Jan 2005 21:43:43 +0000 (21:43 +0000)]
really fix the memory corruption problem in display_string()

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

19 years agoremove redundant code
David Lawrence Ramsey [Wed, 5 Jan 2005 20:41:55 +0000 (20:41 +0000)]
remove redundant code

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

19 years agofix display problem caused by the memory corruption fix
David Lawrence Ramsey [Wed, 5 Jan 2005 19:05:04 +0000 (19:05 +0000)]
fix display problem caused by the memory corruption fix

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

19 years agowhen NANO_WIDE is defined, use MB_CUR_MAX only when the NO_UTF8 flag is
David Lawrence Ramsey [Wed, 5 Jan 2005 18:33:04 +0000 (18:33 +0000)]
when NANO_WIDE is defined, use MB_CUR_MAX only when the NO_UTF8 flag is
not set

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

19 years agoremove now-unneeded comment
David Lawrence Ramsey [Wed, 5 Jan 2005 17:04:03 +0000 (17:04 +0000)]
remove now-unneeded comment

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

19 years agofix potential memory corruption in display_string() when adding UTF-8
David Lawrence Ramsey [Wed, 5 Jan 2005 16:59:49 +0000 (16:59 +0000)]
fix potential memory corruption in display_string() when adding UTF-8
characters, found by valgrind (and caused by a bad merge of part of DB's
code)

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

19 years agofix potential memory corruption in do_output() when adding UTF-8
David Lawrence Ramsey [Wed, 5 Jan 2005 15:42:45 +0000 (15:42 +0000)]
fix potential memory corruption in do_output() when adding UTF-8
characters, found by valgrind

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

19 years agoput back two of the hacks of DB's that are actually needed (we need one
David Lawrence Ramsey [Wed, 5 Jan 2005 06:09:34 +0000 (06:09 +0000)]
put back two of the hacks of DB's that are actually needed (we need one
since we can't add half a two-column character to converted in
display_string(), and we need the other to keep the "$" from spilling
over to the next line if the line contains two-column characters in the
right places)

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

19 years agoremove DB's hacks to work around problems with ncurses' display of
David Lawrence Ramsey [Wed, 5 Jan 2005 05:22:42 +0000 (05:22 +0000)]
remove DB's hacks to work around problems with ncurses' display of
two-column characters at the beginnings and ends of long lines (i.e,
lines with $'s added), as the problems don't occur with ncurses 5.4, and
there's no easy way to fix the same type of problem with doing a regex
replace of "^" on a line beginning with a two-column character

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

19 years agoadd DB's (modified) UTF-8 support tweaks to do_replace_highlight()
David Lawrence Ramsey [Wed, 5 Jan 2005 05:08:14 +0000 (05:08 +0000)]
add DB's (modified) UTF-8 support tweaks to do_replace_highlight()

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

19 years agotweak the charealloc() in do_output() to more closely match the old
David Lawrence Ramsey [Tue, 4 Jan 2005 04:02:45 +0000 (04:02 +0000)]
tweak the charealloc() in do_output() to more closely match the old
charealloc() in do_char(), to avoid another memory corruption problem

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

19 years agoset the value of alloc_len properly again, as in DB's patch, in order to
David Lawrence Ramsey [Tue, 4 Jan 2005 03:09:55 +0000 (03:09 +0000)]
set the value of alloc_len properly again, as in DB's patch, in order to
avoid memory corruption problems

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

19 years agoundo the initialization of index, as the warning was indirectly caused
David Lawrence Ramsey [Tue, 4 Jan 2005 02:55:45 +0000 (02:55 +0000)]
undo the initialization of index, as the warning was indirectly caused
by a missing snippet of code that also broke color regex display, and
add the aforementioned snippet

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

19 years agocosmetic fixes
David Lawrence Ramsey [Mon, 3 Jan 2005 22:56:38 +0000 (22:56 +0000)]
cosmetic fixes

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

19 years agomake sure index is initialized in order to avoid a warning
David Lawrence Ramsey [Mon, 3 Jan 2005 22:29:42 +0000 (22:29 +0000)]
make sure index is initialized in order to avoid a warning

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

19 years agoadd DB's (modified) UTF-8 support tweaks to edit_add(); they're not
David Lawrence Ramsey [Mon, 3 Jan 2005 22:23:00 +0000 (22:23 +0000)]
add DB's (modified) UTF-8 support tweaks to edit_add(); they're not
perfect, but they work better than what's currently there

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

19 years agofix assert
David Lawrence Ramsey [Mon, 3 Jan 2005 21:34:55 +0000 (21:34 +0000)]
fix assert

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

19 years agoupdate more documentation dealing with double-Escape and verbatim input
David Lawrence Ramsey [Mon, 3 Jan 2005 20:07:26 +0000 (20:07 +0000)]
update more documentation dealing with double-Escape and verbatim input
of characters in decimal and hexadecimal, including the changelog

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

19 years agoreadd get_byte_kbinput(), modify get_word_kbinput() to handle
David Lawrence Ramsey [Mon, 3 Jan 2005 19:56:56 +0000 (19:56 +0000)]
readd get_byte_kbinput(), modify get_word_kbinput() to handle
hexadecimal instead of decimal values, make normal input use
get_byte_kbinput(), make verbatim input use get_word_kbinput(), and
update faq.html to mention these changes

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

19 years agoanother int -> bool conversion
David Lawrence Ramsey [Mon, 3 Jan 2005 19:14:39 +0000 (19:14 +0000)]
another int -> bool conversion

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

19 years agomiscellaneous fixes: skip over invalid wide characters, and if wcwidth()
David Lawrence Ramsey [Mon, 3 Jan 2005 06:56:38 +0000 (06:56 +0000)]
miscellaneous fixes: skip over invalid wide characters, and if wcwidth()
returns -1, don't add its value to any column counter; also update
another copyright year

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

19 years agowhen we get a newline via verbatim input at the statusbar prompt, set
David Lawrence Ramsey [Sun, 2 Jan 2005 23:50:29 +0000 (23:50 +0000)]
when we get a newline via verbatim input at the statusbar prompt, set
input to NANO_ENTER_KEY so that the cursor position is reset properly

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

19 years agoadd missing NANO_SMALL #ifdef
David Lawrence Ramsey [Sun, 2 Jan 2005 23:35:19 +0000 (23:35 +0000)]
add missing NANO_SMALL #ifdef

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

19 years agoproperly handle newlines read in via verbatim input at the statusbar
David Lawrence Ramsey [Sun, 2 Jan 2005 22:35:31 +0000 (22:35 +0000)]
properly handle newlines read in via verbatim input at the statusbar
prompt

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

19 years agoimplement verbatim input for the statusbar prompt
David Lawrence Ramsey [Sun, 2 Jan 2005 21:26:53 +0000 (21:26 +0000)]
implement verbatim input for the statusbar prompt

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

19 years agoin do_input() and do_statusbar_input(), func_key is an int* and not an
David Lawrence Ramsey [Sun, 2 Jan 2005 21:13:36 +0000 (21:13 +0000)]
in do_input() and do_statusbar_input(), func_key is an int* and not an
int; fix bad code due to the latter assumption

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