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