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