]> git.wh0rd.org Git - nano.git/log
nano.git
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

19 years agofix an assert, update another copyright year, and add a few more of DB's
David Lawrence Ramsey [Sun, 2 Jan 2005 20:30:15 +0000 (20:30 +0000)]
fix an assert, update another copyright year, and add a few more of DB's
tweaks to fix a few minor bugs with UTF-8 display at the statusbar
prompt

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

19 years agoget rid of the last remnant of the NO_UTF8 toggle that I erroneously
David Lawrence Ramsey [Sat, 1 Jan 2005 07:55:15 +0000 (07:55 +0000)]
get rid of the last remnant of the NO_UTF8 toggle that I erroneously
left in

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

19 years agoimplement cutting from the current position to the end of the file,
David Lawrence Ramsey [Sat, 1 Jan 2005 07:43:32 +0000 (07:43 +0000)]
implement cutting from the current position to the end of the file,
using Ctrl-X from the search prompt and Meta-T from the edit window;
also update the copyright years of more modified files

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

19 years agooverhaul the high-level input routines for the statusbar to make them
David Lawrence Ramsey [Sat, 1 Jan 2005 07:28:15 +0000 (07:28 +0000)]
overhaul the high-level input routines for the statusbar to make them
more flexible, among other things, and add UTF-8 support to them in the
process; also update the copyright years of the modified files

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

19 years agomiscellaneous bits: fix the full justify segfault in a way that doesn't
David Lawrence Ramsey [Fri, 31 Dec 2004 04:10:28 +0000 (04:10 +0000)]
miscellaneous bits: fix the full justify segfault in a way that doesn't
break some normal full justifies, do a few more int -> bool conversions,
and fix a comment

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

19 years agohandle wctomb() failure in parse_char() too
David Lawrence Ramsey [Wed, 29 Dec 2004 22:05:02 +0000 (22:05 +0000)]
handle wctomb() failure in parse_char() too

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

19 years agohandle wctomb() failures properly in display_stirng_len() and
David Lawrence Ramsey [Wed, 29 Dec 2004 21:32:22 +0000 (21:32 +0000)]
handle wctomb() failures properly in display_stirng_len() and
display_string()

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

19 years agocosmetic totsize-related cleanups
David Lawrence Ramsey [Wed, 29 Dec 2004 16:42:48 +0000 (16:42 +0000)]
cosmetic totsize-related cleanups

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

19 years agoset totsize properly when deleting a character or backspacing over it
David Lawrence Ramsey [Tue, 28 Dec 2004 22:36:13 +0000 (22:36 +0000)]
set totsize properly when deleting a character or backspacing over it

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

19 years agoproperly increment start_col when the line begins with a character that
David Lawrence Ramsey [Mon, 27 Dec 2004 23:35:25 +0000 (23:35 +0000)]
properly increment start_col when the line begins with a character that
takes up two columns

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

19 years agoclarify the warning message when sufficient wide character support isn't
David Lawrence Ramsey [Mon, 27 Dec 2004 23:21:34 +0000 (23:21 +0000)]
clarify the warning message when sufficient wide character support isn't
found, and merge missing part of DB's patch to handle tabs properly in
display_string()

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

19 years agofix the NANO_WIDE #ifdefs again, and put display_string_len() back in
David Lawrence Ramsey [Mon, 27 Dec 2004 23:11:59 +0000 (23:11 +0000)]
fix the NANO_WIDE #ifdefs again, and put display_string_len() back in
now that it doesn't corrupt memory anymore (as far as I can tell)

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

19 years agoadd a few missing NANO_WIDE #ifdefs, and remove display_string_len()
David Lawrence Ramsey [Mon, 27 Dec 2004 18:53:38 +0000 (18:53 +0000)]
add a few missing NANO_WIDE #ifdefs, and remove display_string_len()
until I can fix it to no longer cause memory corruption

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

19 years agoconfigure.ac and related cleanups
David Lawrence Ramsey [Fri, 24 Dec 2004 18:11:53 +0000 (18:11 +0000)]
configure.ac and related cleanups

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

19 years agofix display problem caused by backwards comparisons of column and
David Lawrence Ramsey [Fri, 24 Dec 2004 17:52:17 +0000 (17:52 +0000)]
fix display problem caused by backwards comparisons of column and
start_col

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

19 years agorevert last change, as it's actually redundant, and fix a few comments
David Lawrence Ramsey [Fri, 24 Dec 2004 15:45:36 +0000 (15:45 +0000)]
revert last change, as it's actually redundant, and fix a few comments

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

19 years agofix if block
David Lawrence Ramsey [Fri, 24 Dec 2004 15:23:10 +0000 (15:23 +0000)]
fix if block

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

19 years agofix statusbar() and onekey() to properly handle multibyte strings too
David Lawrence Ramsey [Fri, 24 Dec 2004 00:43:41 +0000 (00:43 +0000)]
fix statusbar() and onekey() to properly handle multibyte strings too

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

19 years ago#ifdef fixes
David Lawrence Ramsey [Thu, 23 Dec 2004 21:32:27 +0000 (21:32 +0000)]
#ifdef fixes

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

19 years agoremove command line and rcfile option for --noutf8, as UTF-8 support is
David Lawrence Ramsey [Thu, 23 Dec 2004 19:55:57 +0000 (19:55 +0000)]
remove command line and rcfile option for --noutf8, as UTF-8 support is
now autodetected, and add #ifdefs around two variables that are unused
when NANO_WIDE isn't defined

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

19 years agomore steps toward UTF-8 support: port all the parts of DB's UTF-8 patch
David Lawrence Ramsey [Thu, 23 Dec 2004 17:43:27 +0000 (17:43 +0000)]
more steps toward UTF-8 support: port all the parts of DB's UTF-8 patch
that I currently understand to current CVS, with modifications of mine
to autodetect UTF-8 support and to display multibyte strings instead of
wide strings

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

19 years agoyet another cosmetic fix
David Lawrence Ramsey [Wed, 22 Dec 2004 21:38:43 +0000 (21:38 +0000)]
yet another cosmetic fix

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

19 years agofix misplaced #ifdef
David Lawrence Ramsey [Tue, 21 Dec 2004 16:39:45 +0000 (16:39 +0000)]
fix misplaced #ifdef

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

19 years agocheck for wget_wch() instead of addwstr() when looking for a wide
David Lawrence Ramsey [Mon, 20 Dec 2004 15:39:12 +0000 (15:39 +0000)]
check for wget_wch() instead of addwstr() when looking for a wide
version of curses

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

19 years agorevert erroneous change
David Lawrence Ramsey [Mon, 20 Dec 2004 01:18:49 +0000 (01:18 +0000)]
revert erroneous change

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

19 years agostill more cosmetic fixes
David Lawrence Ramsey [Mon, 20 Dec 2004 01:13:55 +0000 (01:13 +0000)]
still more cosmetic fixes

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

19 years agoanother cosmetic fix
David Lawrence Ramsey [Sat, 18 Dec 2004 22:43:23 +0000 (22:43 +0000)]
another cosmetic fix

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

19 years agocosmetic fixes
David Lawrence Ramsey [Sat, 18 Dec 2004 20:29:42 +0000 (20:29 +0000)]
cosmetic fixes

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

19 years agoUpdated Italian translation.
Jordi Mallach [Wed, 15 Dec 2004 19:42:07 +0000 (19:42 +0000)]
Updated Italian translation.

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

19 years agoUpdated Swedish translation.
Jordi Mallach [Wed, 15 Dec 2004 09:06:30 +0000 (09:06 +0000)]
Updated Swedish translation.

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

19 years agoUpdated Swedish translation by Christian Rose.
Jordi Mallach [Mon, 13 Dec 2004 17:29:42 +0000 (17:29 +0000)]
Updated Swedish translation by Christian Rose.

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

19 years agoimprovements to wide/multibyte character input and output, using wide
David Lawrence Ramsey [Sun, 12 Dec 2004 19:04:56 +0000 (19:04 +0000)]
improvements to wide/multibyte character input and output, using wide
curses functions where applicable

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

19 years agoadd missing reset
David Lawrence Ramsey [Thu, 9 Dec 2004 17:00:15 +0000 (17:00 +0000)]
add missing reset

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

19 years agoadd missing casts
David Lawrence Ramsey [Thu, 9 Dec 2004 03:05:45 +0000 (03:05 +0000)]
add missing casts

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

19 years agocheck for nulls and newlines earlier in do_output(), and add a few more
David Lawrence Ramsey [Wed, 8 Dec 2004 23:24:31 +0000 (23:24 +0000)]
check for nulls and newlines earlier in do_output(), and add a few more
cosmetic fixes

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

19 years agoreset the mbtowc() and wctomb() state machines at the right places
David Lawrence Ramsey [Wed, 8 Dec 2004 16:52:52 +0000 (16:52 +0000)]
reset the mbtowc() and wctomb() state machines at the right places

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

19 years agowhen adding to the keystroke buffer, filter out bad keystrokes with one
David Lawrence Ramsey [Wed, 8 Dec 2004 15:47:38 +0000 (15:47 +0000)]
when adding to the keystroke buffer, filter out bad keystrokes with one
pass instead of two

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

19 years agocosmetic fixes
David Lawrence Ramsey [Wed, 8 Dec 2004 04:00:26 +0000 (04:00 +0000)]
cosmetic fixes

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

19 years agogo back to storing multibyte characters in non-dynamically allocated
David Lawrence Ramsey [Tue, 7 Dec 2004 22:24:03 +0000 (22:24 +0000)]
go back to storing multibyte characters in non-dynamically allocated
arrays of MB_LEN_MAX length, as it's less complex

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

19 years agostore multibyte characters in dynamically allocated arrays of MB_CUR_MAX
David Lawrence Ramsey [Tue, 7 Dec 2004 21:23:39 +0000 (21:23 +0000)]
store multibyte characters in dynamically allocated arrays of MB_CUR_MAX
length, and add a few comment fixes

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

19 years agorename a few variables for consistency
David Lawrence Ramsey [Tue, 7 Dec 2004 21:22:48 +0000 (21:22 +0000)]
rename a few variables for consistency

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 7 Dec 2004 18:05:38 +0000 (18:05 +0000)]
comment fix

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

19 years agorearrange a few variables
David Lawrence Ramsey [Tue, 7 Dec 2004 17:35:14 +0000 (17:35 +0000)]
rearrange a few variables

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

19 years agofix bad cast
David Lawrence Ramsey [Tue, 7 Dec 2004 05:02:21 +0000 (05:02 +0000)]
fix bad cast

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

19 years agoItalian and Romanian update.
Jordi Mallach [Mon, 6 Dec 2004 23:44:55 +0000 (23:44 +0000)]
Italian and Romanian update.

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

19 years agomiscellaneous fixes for the buffered inout and output routines and their
David Lawrence Ramsey [Mon, 6 Dec 2004 04:14:42 +0000 (04:14 +0000)]
miscellaneous fixes for the buffered inout and output routines and their
associated UTF-8 handling: have unget_input() filter out invalid wide
characters, put back the result of a word sequence instead of returning
it directly, don't erroneously filter out keystrokes if they're neither
extended keypad values nor ASCII characters, and add a few comment
tweaks

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

19 years agoformatting fix
David Lawrence Ramsey [Sun, 5 Dec 2004 22:24:39 +0000 (22:24 +0000)]
formatting fix

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

19 years agocosmetic fixes
David Lawrence Ramsey [Sun, 5 Dec 2004 06:11:01 +0000 (06:11 +0000)]
cosmetic fixes

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

19 years agodocument the last titlebar() change
David Lawrence Ramsey [Sun, 5 Dec 2004 06:03:46 +0000 (06:03 +0000)]
document the last titlebar() change

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

19 years agoin titlebar(), space should be an int instead of a size_t
David Lawrence Ramsey [Sun, 5 Dec 2004 06:02:39 +0000 (06:02 +0000)]
in titlebar(), space should be an int instead of a size_t

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

19 years agoadd some miscellaneous fixes for titlebar()
David Lawrence Ramsey [Sun, 5 Dec 2004 05:42:46 +0000 (05:42 +0000)]
add some miscellaneous fixes for titlebar()

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

19 years agowhen we get the whitespace display toggle, update the titlebar as well
David Lawrence Ramsey [Sun, 5 Dec 2004 04:18:26 +0000 (04:18 +0000)]
when we get the whitespace display toggle, update the titlebar as well
as the edit window, in case the filename displayed on the titlebar
contains spaces or tabs; also add a few miscellaneous cosmetic fixes

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

19 years agofix entry
David Lawrence Ramsey [Sat, 4 Dec 2004 21:09:35 +0000 (21:09 +0000)]
fix entry

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

19 years agoadd return to the "c-file" regexes in nanorc.sample
David Lawrence Ramsey [Sat, 4 Dec 2004 18:14:12 +0000 (18:14 +0000)]
add return to the "c-file" regexes in nanorc.sample

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

19 years agomassive overhaul to support buffered input and output, the first steps
David Lawrence Ramsey [Sat, 4 Dec 2004 17:41:52 +0000 (17:41 +0000)]
massive overhaul to support buffered input and output, the first steps
toward proper wide character input and output, etc.

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

19 years agofix potential segfault when doing a full justify
David Lawrence Ramsey [Sat, 4 Dec 2004 17:36:14 +0000 (17:36 +0000)]
fix potential segfault when doing a full justify

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

19 years agoper Jeremy Huddleston's patch, fix compilation problem caused by
David Lawrence Ramsey [Thu, 2 Dec 2004 17:37:09 +0000 (17:37 +0000)]
per Jeremy Huddleston's patch, fix compilation problem caused by
break_line()'s returning int when it should return ssize_t according to
its prototype

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

19 years agoUpdate Catalan, French and Norwegian from the TP.
Jordi Mallach [Wed, 1 Dec 2004 16:31:29 +0000 (16:31 +0000)]
Update Catalan, French and Norwegian from the TP.

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

19 years agochange references to "open files" to "open file buffers" for
David Lawrence Ramsey [Wed, 1 Dec 2004 15:11:27 +0000 (15:11 +0000)]
change references to "open files" to "open file buffers" for
consistency, and add DB's changes to die() so that it works properly
with the overhauled multibuffer routines

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

19 years agoremove malfunctioning wide character support, and add a few
David Lawrence Ramsey [Mon, 29 Nov 2004 00:30:07 +0000 (00:30 +0000)]
remove malfunctioning wide character support, and add a few
miscellaneous fixes

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

19 years agocomment fixes
David Lawrence Ramsey [Sun, 28 Nov 2004 04:52:57 +0000 (04:52 +0000)]
comment fixes

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

19 years agocomment fix
David Lawrence Ramsey [Sun, 28 Nov 2004 03:53:01 +0000 (03:53 +0000)]
comment fix

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

19 years agotypo fix
David Lawrence Ramsey [Sat, 27 Nov 2004 23:28:39 +0000 (23:28 +0000)]
typo fix

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

19 years agoremove specific references to control key shortcuts in configure.ac
David Lawrence Ramsey [Sat, 27 Nov 2004 21:39:01 +0000 (21:39 +0000)]
remove specific references to control key shortcuts in configure.ac

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

19 years agomore formatting fixes
David Lawrence Ramsey [Sat, 27 Nov 2004 21:10:11 +0000 (21:10 +0000)]
more formatting fixes

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

19 years agoremove another unneeded blank space
David Lawrence Ramsey [Sat, 27 Nov 2004 20:42:46 +0000 (20:42 +0000)]
remove another unneeded blank space

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

19 years agoremove unneeded blank spaces
David Lawrence Ramsey [Sat, 27 Nov 2004 20:39:26 +0000 (20:39 +0000)]
remove unneeded blank spaces

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

19 years agoformatting and cosmetic fixes
David Lawrence Ramsey [Sat, 27 Nov 2004 16:54:00 +0000 (16:54 +0000)]
formatting and cosmetic fixes

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

19 years agoin unget_kbinput(), free s after the wctomb() call, since we don't need
David Lawrence Ramsey [Sat, 27 Nov 2004 15:18:34 +0000 (15:18 +0000)]
in unget_kbinput(), free s after the wctomb() call, since we don't need
it after that

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

19 years agocomment fix
David Lawrence Ramsey [Sat, 27 Nov 2004 15:07:07 +0000 (15:07 +0000)]
comment fix

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

19 years agoin get_verbatim_kbinput(), don't pass v_kbinput in as a parameter, since
David Lawrence Ramsey [Sat, 27 Nov 2004 15:00:18 +0000 (15:00 +0000)]
in get_verbatim_kbinput(), don't pass v_kbinput in as a parameter, since
we're dynamically allocating it and then returning it

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

19 years agoadd debug messages to get_shortcut() and get_toggle()
David Lawrence Ramsey [Sat, 27 Nov 2004 06:43:06 +0000 (06:43 +0000)]
add debug messages to get_shortcut() and get_toggle()

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

19 years agoformatting and cosmetic fixes
David Lawrence Ramsey [Fri, 26 Nov 2004 20:17:49 +0000 (20:17 +0000)]
formatting and cosmetic fixes

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