David Lawrence Ramsey
d29e861376
in do_(statusbar_)?input(), remove redundant check for allow_funcs'
...
being TRUE when we get KEY_MOUSE
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 13:06:58 +00:00
David Lawrence Ramsey
02a7f84412
in browser_refresh(), make sure the highlighting of the currently
...
selected file or directory respects the -D/--boldtext option
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 12:37:15 +00:00
David Lawrence Ramsey
0df4de37c3
in browser_refresh(), change variable i from an int to a size_t in order
...
to match selected, which it's compared against
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:57:16 +00:00
David Lawrence Ramsey
f2fe1fd263
cosmetic fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3489 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:44:49 +00:00
David Lawrence Ramsey
560e83f143
in usage(), fix inaccuracies in the usage example
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 19:55:18 +00:00
David Lawrence Ramsey
a5f833de42
in edit_draw(), properly ignore zero-length regexes in multi-line
...
regexes as well as single-line ones; this avoids a segfault when trying
to color e.g. "start="$" end="$""
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3484 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 15:57:04 +00:00
David Lawrence Ramsey
27d5be5e36
per Benno Schulenberg's patch (with a few tweaks by me), add a new
...
section 4.5, and move all section 4 entries after it down one number, to
explain a problem that can occur when holding down keys to generate Meta
sequences; also add a few more capitalization and wording fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3482 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 14:12:36 +00:00
David Lawrence Ramsey
f22fa1341e
typo fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 13:18:01 +00:00
David Lawrence Ramsey
0ec909cb98
add the ability to move to the first and last file in the file browser
...
via Meta-\ (Meta-|) and Meta-/ (Meta-?)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3479 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 15:07:26 +00:00
David Lawrence Ramsey
b22c80ad1d
remove various redundant key checks
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3477 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 13:41:59 +00:00
David Lawrence Ramsey
6e7d24dcdc
add the ability to move to the first and last line of the help text via
...
Meta-\ (Meta-|) and Meta-/ (Meta-?)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 02:26:18 +00:00
David Lawrence Ramsey
3f77c77f11
wording fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3473 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 02:25:32 +00:00
David Lawrence Ramsey
aa4dc9596f
typo fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-04 03:18:58 +00:00
David Lawrence Ramsey
f0e3ca6e88
clarify error messages
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-03 13:11:00 +00:00
David Lawrence Ramsey
c7d6f985c7
in faq.html, add a new section 4.4, and move all section 4 entries after
...
it down one number, to explain how to deal with problems typing Meta-[;
also add a few capitalization and wording fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3464 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-02 00:08:13 +00:00
David Lawrence Ramsey
7a9422b77d
more various wording fixes for documentation
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3461 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-01 13:43:02 +00:00
David Lawrence Ramsey
e7f9813284
various wording fixes for documentation
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-01 13:22:47 +00:00
David Lawrence Ramsey
12c1b5913a
consistency fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3459 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-30 23:30:47 +00:00
David Lawrence Ramsey
5f274c4b49
handle NANO_CONTROL_8 even better by doing it in parse_kbinput()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 19:27:41 +00:00
David Lawrence Ramsey
fbf46a5d88
in do_(statusbar_)?input(), if we get NANO_CONTROL_8, handle it instead
...
of ignoring it, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3451 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 18:59:34 +00:00
David Lawrence Ramsey
4d9ef69f8e
various fixes for get_control_kbinput()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3450 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 18:26:07 +00:00
David Lawrence Ramsey
8bf39a38fe
in configure.ac, remove the other old warning about color support
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 13:27:20 +00:00
David Lawrence Ramsey
f85001a368
add the ability to indent and unindent all marked lines of text, via
...
Meta-[ (Meta-}) and Meta-] (Meta-}), per Chris' patch with some changes
by me
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3446 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 13:19:56 +00:00
David Lawrence Ramsey
cf1879b706
tweak the shortcut list a bit more, and add Space and - as aliases for
...
PageDown and PageUp in the help browser, per Benno Schulenberg's
suggestions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 23:39:49 +00:00
David Lawrence Ramsey
190fae0043
document wording fixes in nanorc.5
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3443 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 18:54:24 +00:00
David Lawrence Ramsey
0d0d636e72
in nano.texi, add a "Nanorc Files" section to explain the nanorc file
...
format in detail, using text from nanorc.5
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3442 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 18:52:50 +00:00
David Lawrence Ramsey
3bcca171ae
in nanorc.5 and nanorc.sample, mention that the nanorc file should not
...
be in DOS or Mac format
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3441 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 17:29:19 +00:00
David Lawrence Ramsey
bd5966061c
in shortcut_init(), add Meta-} as an alias for Meta-]
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3436 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-26 17:24:46 +00:00
David Lawrence Ramsey
c87e0c0965
add the ability to copy text into the cutbuffer without cutting it, via
...
Meta-^ (Meta-6); note that this is disabled when NANO_TINY is defined
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3429 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-25 02:23:28 +00:00
David Lawrence Ramsey
bc80cb1ba7
readd the Cancel -> Exit aliases for the file browser and help browser,
...
per Benno Schulenberg's suggestion, and clean up a few other
miscellaneous things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3428 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-24 23:03:21 +00:00
David Lawrence Ramsey
18dae628d2
reduce NO_RCFILE to a static bool in nano.c, since it's only used there
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3421 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-24 18:54:29 +00:00
David Lawrence Ramsey
891e0ec281
in get_prompt_string(), include the handling of the help key even when
...
help is disabled, so that we aren't erroneously kicked out of the
statusbar prompt under any circumstances
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3420 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:32:50 +00:00
David Lawrence Ramsey
40e0572100
in shortcut_init(), tweak the descriptions of some shortcut keys to make
...
them more uniform, per Benno Schulenberg's patch with minor tweaks by me
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3419 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:21:12 +00:00
David Lawrence Ramsey
2ca2356802
adjust the main shortcut list a bit more, per Benno Schulenberg's patch,
...
and better handle the insertion of blank lines after toggles when
certain features are disabled
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3418 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:15:15 +00:00
David Lawrence Ramsey
4fd74e0db4
in help_init(), if we have at least two entries' worth of blank space,
...
use it to display more of "^Space" and "M-Space"
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3414 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 01:10:55 +00:00
David Lawrence Ramsey
1df3e2d0bf
reorganize the main shortcut list to make it easier for new users, per
...
Benno Schulenberg's suggestion
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3410 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-22 19:45:26 +00:00
David Lawrence Ramsey
3ea0b1d6d8
fix breakage and typos
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3408 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:30:53 +00:00
David Lawrence Ramsey
5f0a58b055
add missing alternate meta key sequences
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3407 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:24:34 +00:00
David Lawrence Ramsey
df45365592
add shortcuts to go to the first or last line of the file from the main
...
list, make all the equivalent shortcuts elsewhere consistent, and
simplify input parsing in do_help()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:05:09 +00:00
David Lawrence Ramsey
6397b592fb
cleanups: fix M-M/M-N toggle inversion, and reorder toggle #defines in
...
nano.h to match the new order in toggle_init()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3405 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 22:36:10 +00:00
David Lawrence Ramsey
e313f5b2c8
reorganize the global toggle list to make it easier for new users, per
...
Benno Schulenberg's suggestion
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3404 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 22:29:02 +00:00
David Lawrence Ramsey
1f09769052
in nano.texi, add minor updates to put some text back in sync with
...
nano's current feature set
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 15:45:24 +00:00
David Lawrence Ramsey
728c85a119
in nano.texi, add minor updates to put some text back in sync with
...
nano's help text
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3400 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 14:33:36 +00:00
David Lawrence Ramsey
57f97538b1
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3397 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:03:57 +00:00
David Lawrence Ramsey
e904888324
in renumber(), remove invalid assert
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:02:33 +00:00
David Lawrence Ramsey
8ff785cf40
in toggle_init(), in the global toggle list, move the "Constant cursor
...
position display" toggle up to after the "Use more space for editing"
toggle, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3395 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 23:13:44 +00:00
David Lawrence Ramsey
b9eb2be295
in shortcut_init(), in the main shortcut list, move the "Refresh"
...
shortcut down to after the "Enter" shortcut, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3394 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 22:55:37 +00:00
David Lawrence Ramsey
efb4b0a96c
add several blank entries to the main shortcut list, in order to make
...
its help text easier to read
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3392 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 14:09:01 +00:00
David Lawrence Ramsey
e806ab8473
adjust the shortcut list display and related mouse support to not waste
...
the last few characters of bottomwin when the screen width isn't a clean
multiple of the column width, per Benno Schulenberg's patch (with a few
tweaks by me)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3390 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-18 16:13:35 +00:00
David Lawrence Ramsey
e916d67389
in nano.texi, mention that backup files and spell checking are disabled
...
in restricted mode, as rnano.1 does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3388 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:39:15 +00:00
David Lawrence Ramsey
51b1b2f1aa
change nano.texi's the license to GPL, in order to match the rest of the
...
documentation, and because the current license is incompatible with
everything else in any case
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:13:10 +00:00
David Lawrence Ramsey
39b7189a13
in parse_syntax(), don't generate an error if we find a duplicate syntax
...
name, since we might be trying to override a syntax in the global nanorc
with one in our local nanorc; instead, free any duplicate syntaxes we
find, so that we always use the last syntax with a given name
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-15 16:02:02 +00:00
David Lawrence Ramsey
8f6fb3c6b6
change translator-specific comments in search.c so that they show up in
...
nano.pot
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3381 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 22:22:00 +00:00
David Lawrence Ramsey
f50bd4be88
clarify some help text and documentation
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3379 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 20:15:44 +00:00
David Lawrence Ramsey
b43648aae2
in configure.ac, remove old warning about color support
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3378 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 18:44:02 +00:00
David Lawrence Ramsey
a33ec1deff
in parse_syntax(), properly generate an error if we've read in a
...
previous syntax without any associated color commands
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3377 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 17:20:53 +00:00
David Lawrence Ramsey
8e05c315b2
in nanorc.sample, simplify the "nanorc" regex for commands
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3373 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:50:36 +00:00
David Lawrence Ramsey
cee20e50c6
at long last, add the ability to use self-contained color syntaxes from
...
separate files, accessible in the nanorc via the "include" command
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3372 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:43:54 +00:00
David Lawrence Ramsey
5fac171c8b
in do_rcfile(), check for the rcfile's being a directory or device file
...
and reject it if it is, for consistency with file handling elsewhere;
also remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3369 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 21:44:07 +00:00
David Lawrence Ramsey
4d72de73b1
add the ability to use bold text instead of reverse video text, via the
...
-D/--boldtext command line option and the "boldtext" rcfile option, and
reduce USE_UTF8 to a static bool in chars.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 15:27:40 +00:00
David Lawrence Ramsey
af318aaa5c
make all translator comments consistent
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3366 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 12:54:23 +00:00
David Lawrence Ramsey
cde9039335
change translator-specific comments in global.c and prompt.c so that
...
they show up in nano.pot
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3365 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:27:42 +00:00
David Lawrence Ramsey
0c4e30be7c
add updated French manpages
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3363 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:16:48 +00:00
David Lawrence Ramsey
125b2f0be5
in write_file(), simplify the routine for closing the file just before
...
we indicate success on the statusbar
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3362 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 05:33:05 +00:00
David Lawrence Ramsey
adfecd24b4
simplify the previous fix; also, in write_file(), clarify the error
...
message when writing a temporary file for prepending fails
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3361 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 04:37:14 +00:00
David Lawrence Ramsey
8055f0935f
in open_file(), remove redundant wording in the error message when we
...
try to open a device file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3358 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 22:57:22 +00:00
David Lawrence Ramsey
f6287eaf54
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3357 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:46:09 +00:00
David Lawrence Ramsey
ac8dfca510
in safe_tempfile(), don't ignore $TMPDIR if it's set but blank, for
...
consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3356 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:41:48 +00:00
David Lawrence Ramsey
e5af25baef
in write_file(), if we can't save the backup file for some reason, at
...
least save the original file, if possible, since that's better than
saving nothing
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3355 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 05:18:23 +00:00
David Lawrence Ramsey
5cbd990bf5
in parse_argument(), rename variable ptr_bak to ptr_save, for
...
consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3353 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:28:52 +00:00
David Lawrence Ramsey
979de2309b
open all files in binary mode for consistency and robustness
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3352 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:25:47 +00:00
David Lawrence Ramsey
b0588ae45e
more comment fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3351 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 16:58:45 +00:00
David Lawrence Ramsey
6d3485e040
various documentation updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3348 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 13:40:56 +00:00
David Lawrence Ramsey
22e15eb7ad
in write_file(), don't free backupname before displaying it in a
...
statusbar error message
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3347 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 02:56:47 +00:00
David Lawrence Ramsey
71da75e92c
in nanorc.sample, in the comment for the "whitespace" option, state
...
which character values work with which encodings
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3346 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-01 19:30:52 +00:00
David Lawrence Ramsey
d9d29c6220
add sample Python regexes to nanorc.sample
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3345 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 19:39:55 +00:00
David Lawrence Ramsey
0320f5bbac
in nanorc.sample, change the comment for the "whitespace" option so that
...
the hexadecimal character values are six digits long
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3343 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 14:37:55 +00:00
David Lawrence Ramsey
4e0984775a
in nanorc.sample, nention in the comments that more than one start/end
...
regex can be included per line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3342 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:43:44 +00:00
David Lawrence Ramsey
f420bea2ca
in nanorc.sample, simplify the "c-file" regex for characters
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3339 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:26:58 +00:00
David Lawrence Ramsey
aa79925d6a
in nanorc.sample, simplify the "shellscript" regex for command line
...
options
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3338 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:18:27 +00:00
David Lawrence Ramsey
b8d92feb62
in nanorc.sample, replace instances of \" with ", since quotes inside
...
string parameters don't need to be escaped with backslashes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3337 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:12:50 +00:00
David Lawrence Ramsey
cdf3f22c23
in nanorc.sample, rweak the "c-file" regex for characters to accept '"'
...
again, as it's apparently valid
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3336 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:07:38 +00:00
David Lawrence Ramsey
04061e76ad
update the copyright years of the manual and info pages to include 2006
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3335 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 07:07:48 +00:00
David Lawrence Ramsey
e38b808959
implement filename searches in the file browser
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3334 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 07:03:04 +00:00
David Lawrence Ramsey
e3d40d30c7
Back to CVS
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3332 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 06:40:25 +00:00
David Lawrence Ramsey
1856ec4425
GNU nano 1.3.11
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3328 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 06:34:43 +00:00
David Lawrence Ramsey
3c43d3d688
replace VERMSG #define with PACKAGE_STRING #define (as defined by
...
autoconf)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3327 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 01:18:29 +00:00
David Lawrence Ramsey
81bfd8244b
typo fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3324 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-26 17:41:47 +00:00
David Lawrence Ramsey
354597f0c2
in get_get_buffer(), die gracefully if input fails MAX_BUF_SIZE times,
...
not (MAX_BUF_SIZE + 1) times
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3321 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-24 16:04:44 +00:00
David Lawrence Ramsey
231158d61a
in do_browser(), make old_selected a size_t too, to match selected
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 23:17:27 +00:00
David Lawrence Ramsey
27ad0cdb37
in do_browser(), make fileline and the static selected size_t's, since
...
the latter can hold the value of the former, and the former can be that
large
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3312 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 20:36:29 +00:00
David Lawrence Ramsey
9b33d51774
in get_key_buffer(), simplify the check for a lost input source, since
...
the errno check is unreliable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3311 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-20 04:46:48 +00:00
David Lawrence Ramsey
9149325400
in get_key_buffer(), if we fail to get a character over MAX_BUF_SIZE
...
times in a row, hang up regardless of the value of errno; this fixes a
problem where nano doesn't terminate properly under xterm if the user
su's to root, runs nano, and then closes the terminal window
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3309 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-19 19:25:29 +00:00
David Lawrence Ramsey
5115fa6767
in faq.html, change the character set to UTF-8, and remove broken links
...
to contributed RedHat nano packages
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3306 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-16 19:30:52 +00:00
David Lawrence Ramsey
167a4b7f9c
in faq.html, update the Free Translation Project's address
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-16 19:16:28 +00:00
Jordi Mallach
6ac73c9408
Update Swedish credits.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3303 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-15 22:44:43 +00:00
David Lawrence Ramsey
05454cfb75
preemptively update the version numbers of all manpages, and remove
...
unneeded comments from rnano.1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3300 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-12 19:34:22 +00:00
David Lawrence Ramsey
3e7821006d
mention that quotes inside string parameters don't need to be escaped
...
with backslashes in nanorc.5 and nanorc.sample
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3299 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-12 19:27:32 +00:00
David Lawrence Ramsey
ac0361df6e
in do_writeout(), remove unneeded setting of currshortcut
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3297 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-24 19:38:20 +00:00
David Lawrence Ramsey
6816007242
make sure browser_refresh() is used when refreshing or doing tab
...
completion at the prompt in the file browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3296 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-18 21:32:29 +00:00
David Lawrence Ramsey
1f907c7413
rename browser_draw() to browser_refresh() for consistency
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3295 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-10 19:02:30 +00:00
David Lawrence Ramsey
d4bae13d8d
move the browser drawing routines to a separate function, browser_draw()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3293 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 23:26:26 +00:00
David Lawrence Ramsey
8326254643
go back to using a while loop in get_prompt_string(), as it's simpler
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3291 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 22:42:14 +00:00
David Lawrence Ramsey
162ed2af24
in get_prompt_string(), initialize finished to FALSE so that the
...
do/while loop works properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3290 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 22:35:04 +00:00
David Lawrence Ramsey
3326603341
in get_prompt_string(), redraw the prompt and set finished to FALSE when
...
NANO_HELP_KEY is pressed, so that we don't leave the prompt, enter the
help browser, and restart the prompt after leaving it; this will
properly preserve the cursor position after doing the last of these
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3289 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 21:43:14 +00:00
David Lawrence Ramsey
08f4974093
in shortcut_init(), remove erroneous handling of the "Get Help" shortcut
...
in the file browser shortcut list
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3288 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 20:33:45 +00:00
David Lawrence Ramsey
591c409f3f
in get_prompt_string(), use a do/while loop instead of a while loop, for
...
consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3287 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 20:14:49 +00:00
David Lawrence Ramsey
c0dcdf43c6
in do_browser(), properly restore the file list display after returning
...
from the help browser at the "Go To Directory" prompt, and rename
variable j to i, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3286 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 19:27:02 +00:00
David Lawrence Ramsey
9d8c284135
allow tab completion of directories at the "Go To Directory" prompt
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 21:11:05 +00:00
David Lawrence Ramsey
fc8e5cb0f2
cosmetic and formatting fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3277 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 18:32:22 +00:00
David Lawrence Ramsey
24e0a465c1
in do_browser(), properly set currshortcut back to the file browser
...
shortcut list after a "Go To Directory" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 05:14:55 +00:00
David Lawrence Ramsey
91a2a69c4f
rework input parsing in the file browser to be more flexible
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3275 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 04:41:44 +00:00
David Lawrence Ramsey
99e3733fc6
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3273 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 04:02:25 +00:00
David Lawrence Ramsey
114cfb63f4
in display_string(), fix memory corruption problems caused by not
...
allocating enough space for converted when a line ends in a tab(s) and
we're not in UTF-8 mode
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3272 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 03:58:49 +00:00
David Lawrence Ramsey
1f104f8079
fix a comment in nano.h and a minor memory leak in display_string()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3271 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 03:51:51 +00:00
David Lawrence Ramsey
475c402b65
in parse_kbinput(), interpret Shift-Begin, Shift-Delete, Shift-End,
...
Shift-Home, Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home,
Insert, and Suspend, respectively, regardless of whether --rebindkeypad
is used
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3265 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-30 01:32:41 +00:00
David Lawrence Ramsey
a6eb8480ea
really fix the previous display problem with searches that move the
...
cursor offscreen and from a page other than the first one onto a
different page by reverting the erroneous change to edit_scroll() and
adding the proper fix to edit_redraw()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3263 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-10 07:51:49 +00:00
David Lawrence Ramsey
76f9485b02
in ngetdelim(), do sanity checks manually again instead of in an assert,
...
and set errno to EINVAL as well as return -1 if they fail; this matches
the manual page
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3262 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-09 03:23:29 +00:00
David Lawrence Ramsey
1a16df9284
fix "matchbrackets" breakage
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3260 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 22:04:38 +00:00
David Lawrence Ramsey
d89617fb17
allow specifying matching bracket characters other than the default via
...
the "matchbrackets" rcfile option
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3259 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 21:51:10 +00:00
David Lawrence Ramsey
a248863b43
rework the bracket searching code to handle multibyte bracket characters
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3258 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 07:10:30 +00:00
David Lawrence Ramsey
5978f9b11d
in mbstrchr(), make parameter c const
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3257 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 05:54:44 +00:00
David Lawrence Ramsey
5329f23345
sort the default strings for brackets and punct, and the "or" atom in
...
the default regex string for quotestr, in order according to ASCII, and
add minor related documentation updates
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-03 04:53:41 +00:00
David Lawrence Ramsey
47cfd197b8
in edit_scroll(), redraw the lines before and after the scrolled region
...
even if the scrolled region was only one line; this fixes a display
problem that occurs after doing a search that scrolls the screen down
one line and leaves the cursor on the last line of the screen, in which
case we need to update the line after the scrolled region
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3254 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-02 04:30:33 +00:00
David Lawrence Ramsey
5b7b3e3c9c
cosmetic fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3253 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 21:22:54 +00:00
David Lawrence Ramsey
30bdadd4d5
revert previous erroneous change, and clarify comments
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3252 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 21:08:10 +00:00
David Lawrence Ramsey
89b6e6b9dd
in justify_format(), remove redundant character parsing
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3251 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 20:37:56 +00:00
David Lawrence Ramsey
ce029f2b11
remove unnecessary #ifdef around termios.h #include in nano.c
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3250 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-28 05:01:00 +00:00
David Lawrence Ramsey
1e73bcfe29
fix inaccurate comment
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3249 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 20:18:06 +00:00
David Lawrence Ramsey
da959919fc
Back to CVS
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3248 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:15:34 +00:00
David Lawrence Ramsey
2cd986cdef
GNU nano 1.3.10
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3246 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:08:19 +00:00
David Lawrence Ramsey
5e4d81c99e
in README.CVS, mention that the minimum required version of groff is
...
1.12, since that's the first version that supports generating HTML
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3245 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:07:00 +00:00
David Lawrence Ramsey
628c4e2928
French manpage updates.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3244 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 15:46:26 +00:00
David Lawrence Ramsey
e57bd4993e
in parse_line_column(), simplify parsing of the column number
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3243 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 03:15:12 +00:00
David Lawrence Ramsey
5aaaad4a63
in README.CVS, update the given cvs commands so that they work again
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3240 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-15 04:46:13 +00:00
David Lawrence Ramsey
b0e04c0de3
a few last comment and consistency fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3238 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 07:24:54 +00:00
David Lawrence Ramsey
6d6a36c647
add descriptive comments to pretty much all functions and major
...
variables that don't have them, plus a few miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3237 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 07:09:08 +00:00
David Lawrence Ramsey
034b994eb5
since proto.h includes nano.h, and nano.h includes config.h first,
...
include proto.h first and remove redundant includes of config.h in all
non-header source files
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3236 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 02:47:10 +00:00
David Lawrence Ramsey
8befda6490
readd RETSIGTYPE return types for signal handlers, since any problems
...
with its being defined as the wrong type aren't nano's fault
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3235 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-06 19:39:56 +00:00
David Lawrence Ramsey
24777c0740
fix compilation with --enable-debug, and remove unneeded assert
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3234 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-01 05:49:08 +00:00
David Lawrence Ramsey
26ebd35d54
in ngetdelim(), do sanity checks in an assert instead of checking them
...
manually and returning -1 if they fail
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3232 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-30 19:33:56 +00:00
David Lawrence Ramsey
13b6115894
update the Free Software Foundation's address as needed in the copyright
...
notices taken from other sources
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3231 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-30 18:57:05 +00:00
David Lawrence Ramsey
c7c04bb665
in brak_line(), in the surrounding #ifdef, replace the combination of
...
!DISABLE_JUSTIFY and !DISABLE_WRAPPING with !DISABLE_WRAPJUSTIFY, for
consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3229 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 21:30:00 +00:00
David Lawrence Ramsey
ad1b64cdfa
in do_justify(), renumber after justifying each individual paragraph,
...
since find_paragraph() needs the line numbers to be right as well as
edit_refresh(); this fixes a potential segfault when doing full justify
with auto-indent turned on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3226 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 19:00:09 +00:00
David Lawrence Ramsey
79383beef3
revert last changes, as they make full justify and justify act
...
differently
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3225 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 18:34:45 +00:00
David Lawrence Ramsey
9a065c089f
in find_paragraph(), add parameter begin, the line that we can't move
...
further back than when searching for a paragraph; this is needed to
ensure that we don't justify the same lines more than once if
auto-indent is turned on, and the indentation of what should be the
previous paragraph matches that of what should be the current paragraph
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3224 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 18:25:53 +00:00
David Lawrence Ramsey
5da68ee193
in execute_command(), instead of hardcoding /bin/sh as the shell to use
...
when executing a command, use $SHELL, and only fall back to /bin/sh if
$SHELL isn't set
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3220 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 05:21:06 +00:00
David Lawrence Ramsey
da1f55cec7
add missing update
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3219 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 04:27:07 +00:00
David Lawrence Ramsey
ace033d834
in configure.ac, disable wrapping entirely when --enable-tiny is used,
...
as it matches the FAQ, it makes nano even smaller, and it eliminates the
need for --disable-wrapping-as-root in that case (in which it's
impossible to turn wrapping back on without nanorc support)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3217 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 04:17:53 +00:00
David Lawrence Ramsey
5453b0accf
in version(), if DISABLE_WRAPPING is defined, the code in
...
DISABLE_ROOTWRAP #ifdefs isn't included, so don't display
"--disable-wrapping-as-root" in that case
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3216 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-29 04:16:43 +00:00
David Lawrence Ramsey
315eb3280a
adjust copyright notices in all source files to account for Chris'
...
reassigning the 2005-2006 copyright on nano to me
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3215 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-28 19:35:29 +00:00
David Lawrence Ramsey
b4e5c02474
more miscellaneous do_wrap() fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3214 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-25 13:48:09 +00:00
David Lawrence Ramsey
615f4c71c0
tweak do_wrap() to remove the assumption that the file always ends in a
...
magicline
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3210 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-22 21:48:24 +00:00
David Lawrence Ramsey
b9b2fd52ff
in break_line(), only include the newline parameter if DISABLE_HELP
...
isn't defined, as it's only used then
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3209 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-22 21:13:36 +00:00
David Lawrence Ramsey
708de360dc
in configure.ac, clarify description of --disable-speller
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3208 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-22 20:24:22 +00:00
David Lawrence Ramsey
d1ab408965
in faq.html, clarify section 5.3 to better explain how to enable Unicode
...
support, and remove the mention of quirks, since they turned out to not
be a nano problem
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3206 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-21 20:08:42 +00:00
David Lawrence Ramsey
fa35aef359
merge a few minor updates from nano.1 into rnano.1
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3205 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-21 16:16:38 +00:00
Jordi Mallach
7949e6ae09
Add rnano manpage from Thijs.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3204 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-21 09:36:11 +00:00
David Lawrence Ramsey
4ffdb1bbec
in nano.1, make one non-bold instance of "nano" bold, for consistency
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3203 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-21 03:36:29 +00:00
David Lawrence Ramsey
7a07cdb51e
in faq.html, add a new section 5.3 to explain the status of nano's
...
Unicode support
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3202 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-19 06:14:31 +00:00
David Lawrence Ramsey
ccd1b7b50a
miscellaneous minor fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3201 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-18 20:21:48 +00:00
David Lawrence Ramsey
87397ba37b
add missing documentation
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3198 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-17 03:53:58 +00:00
David Lawrence Ramsey
391cef12c9
documentation fix: the LGPLed ngetdelim() and ngetline() functions are
...
converted to the GPL not only to avoid including a copy of the LGPL, but
also because the changes made to integrate these functions with nano
make them dependent on nano's GPLed functions and hence useless
elsewhere
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3197 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-17 03:52:00 +00:00
David Lawrence Ramsey
ad074011c9
in get_prompt_string(), adjust #ifdefs to leave out disabled keys
...
entirely instead of keeping enough code to just ignore them
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3196 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 21:34:46 +00:00
David Lawrence Ramsey
5ab56eaa8d
refactor the statusbar prompt's bracket searching code to be closer to
...
the edit window's bracket searching code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3194 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 13:45:41 +00:00
David Lawrence Ramsey
29fb951fcd
miscellaneous documentation fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3192 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 07:35:01 +00:00
David Lawrence Ramsey
4580f1502c
add missing changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3191 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 06:42:11 +00:00
David Lawrence Ramsey
cf9c34acef
only include code related to whole word searches when DISABLE_SPELLER
...
isn't defined, as only the internal spell checker uses it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3190 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 05:59:06 +00:00
David Lawrence Ramsey
bd0b3cd39b
in do_justify(), don't save current_y and restore it if the user
...
unjustifies, as the reset_cursor() called by edit_refresh() after
restoring edittop and current will ensure that current_y is restored to
its original value
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3189 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 04:41:31 +00:00
David Lawrence Ramsey
c499382fec
add the ability to do bracket searches at the statusbar prompt
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3187 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 04:14:03 +00:00
David Lawrence Ramsey
cfffbf71ce
in reset_statusbar_cursor(), fix cursor placement problem by modeling
...
the code more closely after reset_cursor()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3185 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 03:14:11 +00:00
David Lawrence Ramsey
9d3a468ad8
in do_statusbar_input(), fix misplaced break when handling
...
NANO_VERBATIM_KEY
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3184 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-16 02:45:10 +00:00
David Lawrence Ramsey
c5c5230b9d
overhaul the bracket searching code so that it no longer requires regex
...
support to work, and add some miscellaneous search code cleanups
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3183 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-15 23:45:29 +00:00
David Lawrence Ramsey
bc8b7d74eb
in mbstrchr(), detect the case where the character isn't found in the
...
string more accurately
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3179 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-15 19:01:07 +00:00
David Lawrence Ramsey
ebe3425f9f
rename the NANO_SMALL #define to NANO_TINY
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3176 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-15 03:17:35 +00:00
David Lawrence Ramsey
023db6aa77
per Mike Frysinger's patch, don't install the localized versions of the
...
manpages if nano is built with --disable-nls
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3175 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-15 02:39:20 +00:00
David Lawrence Ramsey
a1064d4279
for functions originally adapted from other sources, invoke LGPL clause
...
3 to convert all LGPLed functions to GPLed ones, so that we don't have
to include a copy of the LGPL
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3173 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-14 23:02:03 +00:00
David Lawrence Ramsey
3f7c8c5158
fix copyright years on source files; all functions in browser.c were
...
originally added in 2001; the oldest function in color.c is
do_colorinit() (now color_init()), which was originally added in 2001;
the oldest function in chars.c is revstrstr(), which was originally
added in 2001; the oldest function in help.c is do_help(), which was
originally added in 2000; the oldest function in prompt.c is statusq()
(now do_prompt()), which was originally added before 0.6.6, which was
apparently in 1999; all functions in rcfile.c were originally added in
2001; one of the oldest functions in search.c is do_search(), which was
originally added in 0.2.7, which was apparently in 1999; and one of the
oldest functions in text.c is do_wrap(), which was originally added in
0.3.1, which was apparently in 1999; also, for functions originally
adapted from other sources, add notices from the original files, as we
do with the tab completion functions adapted from busybox
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3172 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-14 22:20:35 +00:00
David Lawrence Ramsey
6533e235e8
when building, automatically generate an HTML version of the info page,
...
nano.html
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3168 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-12 07:50:03 +00:00
David Lawrence Ramsey
de39a2b05b
in nano.texi, fix inconsistent punctuation
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3167 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-12 07:23:39 +00:00
David Lawrence Ramsey
fb0c3f85de
in get_page_start(), fix test so that we scroll through the line in
...
8-character chunks when COLS is greater than 8, not when COLS is greater
than 9
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3166 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-12 05:20:14 +00:00
David Lawrence Ramsey
a24da6944c
changelog fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3165 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-11 17:05:27 +00:00
David Lawrence Ramsey
b3c846cd98
in nano.texi, add more wording fixes, sort the configure options more
...
consistently, and add missing --disable-utf8 option
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3164 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-11 17:04:17 +00:00
David Lawrence Ramsey
1520350e20
in nano.texi, per Mike Frysinger's patch, add missing configure options,
...
so that all of them are documented
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3163 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-11 16:42:45 +00:00
David Lawrence Ramsey
d82dae0925
fix the last of the breakage (I hope) in find_paragraph() and
...
do_justify()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3161 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-11 05:13:28 +00:00
David Lawrence Ramsey
cd8f73521e
fix breakage in both backup_lines() and do_justify(); the latter's
...
return value is unneeded, as current will point to the same line when
it's done, and making first_par_line point to current in the former
ensures that the two will properly stay in sync
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3155 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-10 21:20:32 +00:00
David Lawrence Ramsey
985d586c3a
revert change to do_justify(), since it's used when fileage may be
...
temporarily out of range
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3152 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-10 16:46:50 +00:00
David Lawrence Ramsey
b885c9c5e9
revert change to edit_update(), since it's used when fileage may be
...
temporarily out of range, and fix a comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3144 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-10 05:20:25 +00:00
David Lawrence Ramsey
e99223dd25
tweak do_wrap(), remove_magicline(), edit_scroll(), and edit_update() to
...
rely on fileage and filebot instead of NULL for their checks to detect
the top or bottom of the file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3143 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-10 04:27:30 +00:00
David Lawrence Ramsey
653a5a3a45
tweak do_justify() to rely on fileage instead of NULL for its check to
...
detect the top of the file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3141 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-10 04:03:05 +00:00
David Lawrence Ramsey
2c5d0ecbb3
tweak find_paragraph() and do_justify() to remove the assumption that
...
the file always ends in a magicline; note that the latter isn't
completely fixed yet
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3129 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 19:06:01 +00:00
David Lawrence Ramsey
5c33e88b25
finish tweaking backup_lines() to remove the assumption that the file
...
always ends in a magicline, and add documentation fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3128 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 18:58:04 +00:00
David Lawrence Ramsey
8bd960bbc9
minor backup_lines() cleanups
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3127 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 18:49:16 +00:00
David Lawrence Ramsey
0083bd29d2
tweak begpar() to rely on fileage instead of NULL for its check to
...
detect the top of the file, and make it return NULL if foo is NULL, just
as inpar() does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3126 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 18:26:44 +00:00
David Lawrence Ramsey
c1a28fa9ae
in get_next_filename(), store the value of digits(ULONG_MAX) in a
...
static, since it doesn't change and hence doesn't need to be
recalculated
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3124 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 15:13:00 +00:00
David Lawrence Ramsey
31d7b3667c
tweak do_para_end() to remove the assumption that the file always ends
...
in a magicline
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3123 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 04:20:55 +00:00
David Lawrence Ramsey
b387137af7
in cut_line(), since placewewant will always be zero after the line is
...
cut, set it to zero directly instead of assigning it the value of
xplustabs()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3116 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-09 00:23:12 +00:00
David Lawrence Ramsey
c9820ac098
more fixes for files that don't end in magiclines: make cut_line() cut
...
the text of the current line (if any), minus the nonexistent newline,
when we're on the last line of the file, and make sure again that the
file isn't marked as modified if the magicline is deleted and we're
supposed to have one, as it's more consistent that way (a marked cut of
the magicline adds a newline to the cutbuffer, while deleting the
magicline adds nothing)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3114 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 23:59:29 +00:00
David Lawrence Ramsey
126cc1c8dd
add missing changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3110 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 19:40:59 +00:00
David Lawrence Ramsey
9c984e8e63
in do_alt_speller(), move the code that replaces the text of the current
...
file with the text of the spell-checked file into its own function,
replace_buffer()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3109 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 19:15:58 +00:00
David Lawrence Ramsey
1e0e235cbb
make do_int_spell_fix() and do_alt_speller() take the NO_NEWLINES flag
...
into account
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3108 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 18:34:12 +00:00
David Lawrence Ramsey
8779a17ffe
initialize the static pid_t pid in text.c, just in case
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3107 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 16:45:22 +00:00
David Lawrence Ramsey
f400c23279
tweak do_alt_speller() to remove the assumption that the file always
...
ends in a magicline
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3106 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 16:37:29 +00:00
David Lawrence Ramsey
c0181c95ee
cosmetic fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3104 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 02:27:11 +00:00
David Lawrence Ramsey
f1a717291b
correction: in mbwidth(), use the width of Unicode U+FFFD (Replacement
...
Character) instead of hardcoding a width of one for unprintable
characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3103 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 02:24:17 +00:00
David Lawrence Ramsey
4a8c9b6124
in mbwidth(), if wcwidth() returns -1 for the character passed in, treat
...
the character as being one column wide instead of zero columns wide,
since there are display problems that crop up with the latter approach
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3102 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-08 02:20:22 +00:00
David Lawrence Ramsey
e19449ec50
actually use statusbar_pww in the statusbar prompt code to cut down on
...
redundant updates, add related functions to do that, and rename a few of
the statusbar prompt functions for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3099 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-07 21:45:44 +00:00
David Lawrence Ramsey
af3314c376
add the statusbar prompt's equivalent of placewewant,statusbar_pww, to
...
prompt.c, and convert (most of) its functions to use it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3098 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-07 06:32:07 +00:00
David Lawrence Ramsey
b3c6b40550
in update_line(), remove now-unneeded logic that set the index parameter
...
to zero if the fileptr parameter didn't point to current
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3097 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-07 06:20:02 +00:00
David Lawrence Ramsey
37ddfa9dbd
move do_verbatim_input() from nano.c to text.c, since it's an advanced
...
text-based operation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3096 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-07 06:06:05 +00:00
David Lawrence Ramsey
43fff01ede
move functions specific to the file browser to their own source file,
...
browser.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3094 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-05 20:01:11 +00:00
David Lawrence Ramsey
46f5665da2
tweak do_last_line() to remove the assumption that the file always ends
...
in a magicline
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3093 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-05 17:50:06 +00:00
David Lawrence Ramsey
c0e54d16cb
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3092 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-05 17:37:39 +00:00
David Lawrence Ramsey
a0168ca896
add new -L/--nonewlines command line option, and new "nonewlines" rcfile
...
option, to control whether nano adds magiclines to the ends of files
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3091 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-05 17:35:44 +00:00
David Lawrence Ramsey
c3b3b9a28f
tweak open_buffer() and read_file() to remove the assumption that the
...
file always ends in a magicline
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3090 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-05 17:20:39 +00:00
David Lawrence Ramsey
72ad7dc602
fix inconsistent wording in nano.texi
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3086 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-04 06:43:02 +00:00
David Lawrence Ramsey
306049666a
tweak write_file() to remove the assumption that the file always ends in
...
a magicline, and remove a bit of apparently unneeded logic from
read_file()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3083 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-04 05:44:01 +00:00
David Lawrence Ramsey
cf0efaab5d
remove unneeded assert in do_rcfile()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3082 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-04 04:10:09 +00:00
David Lawrence Ramsey
29bf57ff67
revert erroneous change
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-03 21:38:51 +00:00
David Lawrence Ramsey
2ffdea4fc1
tweak a few functions to remove the assumption that the file always ends
...
in a magicline, and to rely on fileage and filebot instead of NULL for
their checks to detect the top or bottom of the file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3080 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-03 21:08:39 +00:00
David Lawrence Ramsey
38ebba11b7
move do_yesno() to prompt.c too
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3079 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-03 21:07:24 +00:00
David Lawrence Ramsey
626bcd7cc2
remove unneeded sys/wait.h #include from files.c
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3078 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-03 02:45:54 +00:00
David Lawrence Ramsey
ee11c6a62f
add missing stdio.h #include to text.c too
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3077 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-02 19:42:02 +00:00
David Lawrence Ramsey
00cc565ddd
move check_linenumbers(), dump_buffer(), and dump_buffer_reverse() from
...
winio.c to utils.c too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3076 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-02 15:44:01 +00:00
David Lawrence Ramsey
305c6459e9
in do_yesno(), make mouse clicks on the Yes/No/All shortcuts work properly when the MORE_SPACE flag is set
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3075 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-02 15:32:30 +00:00
David Lawrence Ramsey
7e2d673b5f
move functions specific to the help browser to their own source file,
...
help.c, and adjust related variables accordingly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3072 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-01 19:32:45 +00:00
David Lawrence Ramsey
bdc038db14
add missing changelog update
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3069 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-01 18:44:29 +00:00
David Lawrence Ramsey
2b9d6a0e6c
move get_page_start() from winio.c to utils.c too, and fix a few
...
comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3066 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-01 17:45:31 +00:00
David Lawrence Ramsey
d24d0a43e8
move functions specific to the statusbar prompt to their own source
...
file, prompt.c, and adjust related variables accordingly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3065 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-01 17:37:44 +00:00
David Lawrence Ramsey
81c4e187f5
move xplustabs(), actual_x(), strnlenpt(), and strlenpt() from winio.c
...
to utils.c, as they're really utility functions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3064 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-31 23:07:58 +00:00
David Lawrence Ramsey
67d1951e4d
refactor the statusbar code to have and use statusbar_xplustabs(), for
...
consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3063 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-31 19:36:37 +00:00
David Lawrence Ramsey
3e477263da
in nanoget_repaint(), rename parameter inputbuf to buf, for consistency
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3062 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-31 01:32:46 +00:00
David Lawrence Ramsey
a0aff67a4d
rename edit_add() to edit_draw(), and rename its parameter yval to line
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3059 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-27 20:10:45 +00:00
David Lawrence Ramsey
377098e617
in nanorc.sample, also tweak the "c-file" regex for characters to
...
properly reject '"' and '''
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3058 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-27 19:06:47 +00:00
David Lawrence Ramsey
20186f8849
in nanorc.sample, tweak the "c-file" regex for characters to properly
...
handle '\"'
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3057 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-27 18:59:23 +00:00
David Lawrence Ramsey
2c8cf48372
at long last, properly handle mouse clicks on the statusbar prompt text
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3053 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-27 04:51:41 +00:00
David Lawrence Ramsey
3d12f0f53d
refactor nanoget_repaint() to split out the new function
...
get_statusbar_page_start(), the statusbar prompt's equivalent of
get_page_start(); also make sure that the minimum allowed terminal size
in columns is 4, as the statusbar prompt code relies on this assumption
and will crash otherwise
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3051 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-26 23:14:59 +00:00
David Lawrence Ramsey
b2bf101d0c
typo fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3050 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-25 06:27:38 +00:00
David Lawrence Ramsey
2de84c1c8d
add the ability to scroll up or down single lines without scrolling the
...
cursor, via Meta-- and Meta-+; note that this is disabled when
NANO_SMALL is defined
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3049 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-24 02:12:09 +00:00
David Lawrence Ramsey
ae5d2dffff
Back to CVS
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3048 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-24 01:46:27 +00:00
David Lawrence Ramsey
5a9d4935eb
GNU nano 1.3.9
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3046 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-24 01:44:23 +00:00
David Lawrence Ramsey
45e3452b3e
in nanorc.sample, tweak one "TeX" regex to use the "icolor" directive
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3043 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-11 19:20:52 +00:00
David Lawrence Ramsey
90b07fc2fd
in do_tab(), make sure that we insert the correct number of spaces if
...
the TABS_TO_SPACES flag is set and placewewant is greater than the
current column position of the cursor
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3041 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-07 15:57:48 +00:00
David Lawrence Ramsey
6f5de42702
in get_key_buffer(), only save all open buffers and hang up when a
...
blocking wgetch() returns ERR and errno is set to EIO (input/output
error); if errno is set to something else, recover properly; this fixes
problems with nano's erroneously hanging up while e.g. resizing or
unsuspending in a chroot
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3038 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-06 05:28:37 +00:00
David Lawrence Ramsey
7de4dc8d08
add the last of Mike Frysinger's "c-file" regex improvements, slightly
...
simplified by me
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3037 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-04 04:52:06 +00:00
David Lawrence Ramsey
0ed9c5fb37
add most of Mike Frysinger's "c-file" regex tweaks and improvements
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3036 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-10-04 04:21:43 +00:00
David Lawrence Ramsey
d04499202c
minor documentation updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3031 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-26 02:14:37 +00:00
David Lawrence Ramsey
8f36d09d18
in get_escape_seq_kbinput(), fix a typo preventing the
...
VT100/VT220/VT320/xterm/rxvt escape sequence for ',' on the numeric
keypad with NumLock off from being interpreted properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3029 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-24 19:42:48 +00:00
David Lawrence Ramsey
ae4c3a6206
cosmetic fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3028 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-20 19:46:39 +00:00
David Lawrence Ramsey
95ef337b1a
revert previous changes, as lines are broken on tabs regardless of goal
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3027 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-20 19:44:19 +00:00
David Lawrence Ramsey
9c4488bf0c
in break_line(), fix another problem where goal could be miscalculated
...
on lines containing tabs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3026 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-20 19:36:39 +00:00
David Lawrence Ramsey
cd9a5f0377
in break_line(), fix a problem where a line could be broken in the
...
middle of a multibyte character
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3022 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-20 06:12:54 +00:00
David Lawrence Ramsey
c4b854d5c7
in display_string(), really avoid a memory corruption problem by
...
allocating enough space for COLS characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3021 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-20 04:15:33 +00:00
David Lawrence Ramsey
3c4dc46fdc
in (control_)?mbrep(), if crep is an invalid multibyte sequence, copy
...
Unicode 0xFFFD (Replacement Character) into it using strncpy() instead
of assigning the former to it; this avoids segfaults when freeing crep
later, since it's supposed to be dynamically allocated
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3018 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-14 19:17:56 +00:00
David Lawrence Ramsey
1c3bfa9f2b
remove do_(left|right)()'s ability to optionally not update the current
...
line, as this was only used in do_backspace(), and it didn't always
update the screen properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3017 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-13 04:53:44 +00:00
David Lawrence Ramsey
feb89db8a0
more miscellaneous minor fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3016 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-13 04:45:46 +00:00
David Lawrence Ramsey
239b415786
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3015 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-06 06:25:25 +00:00
David Lawrence Ramsey
7f26c7384d
in display_string(), if column is less than start_col and the
...
character's a tab, which can be possible if there are enough tabs and
the terminal size is sufficiently large, don't try to display it using
control_mbrep()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3014 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-05 01:36:47 +00:00
David Lawrence Ramsey
f56229948d
in configure.ac, update the description of the ENABLE_COLOR option to
...
mention the need for regex.h
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3012 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-02 19:13:27 +00:00
David Lawrence Ramsey
093d500e15
if we don't have regex.h and hence regex support, disable color support,
...
as it depends on the use of regexes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3011 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-02 19:09:36 +00:00
David Lawrence Ramsey
93bef536f7
minor documentation fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3010 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-02 04:42:44 +00:00
David Lawrence Ramsey
e4e6173389
in move_to_filestruct(), fix problem where edittop wouldn't be reset
...
properly if it was inside the text moved to another filestruct; also add
comment fixes and miscellaneous cleanups to it and
copy_from_filestruct()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-09-02 04:35:58 +00:00
David Lawrence Ramsey
47daf0279d
add Mike Frysinger to credits
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3004 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-29 18:29:02 +00:00
David Lawrence Ramsey
79d9795c80
make is_valid_unicode() catch more invalid Unicode
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3003 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-28 03:07:13 +00:00
David Lawrence Ramsey
738893f9c7
more email address updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3002 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-27 16:26:57 +00:00
David Lawrence Ramsey
c83512ac6a
fix changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-27 16:18:15 +00:00
David Lawrence Ramsey
111f37a853
update email address
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3000 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-27 16:16:36 +00:00
Jordi Mallach
c6836ec6d5
Credit Bulgarian and Dutch translators.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2999 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-22 08:47:16 +00:00
Jordi Mallach
a8db26010b
Convert to UTF-8.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2998 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-22 08:45:37 +00:00
David Lawrence Ramsey
c71e031d8a
clean up do_credits() even more
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2991 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-14 21:17:37 +00:00
David Lawrence Ramsey
84fdb90e52
use doupdate() instead of refresh() to reenter curses mode
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2990 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-14 20:08:49 +00:00
David Lawrence Ramsey
31de105eec
turn the keypad on in topwin again, and clean up do_credits() a bit
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2989 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-14 19:25:16 +00:00
David Lawrence Ramsey
85ea1de1c7
cosmetic fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2988 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-13 20:05:06 +00:00
David Lawrence Ramsey
4fde119362
for consistency, display high-bit single-byte control characters as Unicode FFFD in UTF-8 mode
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2987 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-13 19:54:40 +00:00
David Lawrence Ramsey
9fece9deb0
still more various documentation updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2985 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 23:32:08 +00:00
David Lawrence Ramsey
d7f0fe9243
various documentation updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2984 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 22:51:49 +00:00
David Lawrence Ramsey
4f03daff91
add new -W/--wordbounds command line option, and new "wordbounds" rcfile
...
option, to control whether the word movement functions treat punctuation
characters as part of a word
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2983 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 22:12:28 +00:00
David Lawrence Ramsey
6a3ac36420
in usage(), remove unneeded translation of "--quickblank"
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2982 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 21:52:59 +00:00
David Lawrence Ramsey
4adb37ed1d
clarify changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2981 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 21:26:32 +00:00
David Lawrence Ramsey
057edf7384
readd the option to turn the keypad off by default from nano 1.2.x, with
...
a few tweaks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2980 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 21:22:15 +00:00
David Lawrence Ramsey
abd8993660
in update_history(), add a check to make sure the parameter we pass to
...
renumber() isn't NULL, and update related comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2979 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-10 20:03:58 +00:00
David Lawrence Ramsey
8c7a562394
cover the full range of Unicode
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2978 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-08 23:47:28 +00:00
David Lawrence Ramsey
8b006c2912
store Unicode values in longs instead of ints
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2977 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-08 23:03:25 +00:00
David Lawrence Ramsey
6ff695c154
even better handling of invalid Unicode characters
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2975 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-05 03:14:29 +00:00
David Lawrence Ramsey
71dd8c1ca6
don't allow entering invalid Unicode in make_mbchar() either
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2974 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-04 21:38:41 +00:00
David Lawrence Ramsey
8c55d21bd6
add better handling of invalid Unicode, plus a few miscellaneous minor
...
fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2973 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-04 20:24:26 +00:00
David Lawrence Ramsey
b7bf27a509
more get_unicode_kbinput() fixes: properly discard hexadecimal FFFE to
...
FFFF instead of xxxE and xxxF, and discard hexadecimal D800 to DFFF as
well, as they're also invalid Unicode characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2972 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-02 19:54:25 +00:00
David Lawrence Ramsey
107e816324
eliminate still more redundant screen updates
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2969 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 21:05:29 +00:00
David Lawrence Ramsey
6a83647a11
rename get_word_kbinput() to get_unicode_kbinput(), and also rename
...
related variables
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2968 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 19:12:05 +00:00
David Lawrence Ramsey
56e36ef7b5
in get_word_kbinput(), limit the input word to hexadecimal FFFD instead
...
of FFFF, as FFFE and FFFF are invalid Unicode characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2967 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 18:56:46 +00:00
David Lawrence Ramsey
bf0e47dc37
miscellaneous enum cleanups, including making the file-writing
...
functions' append parameter an enum instead of an int
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2966 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 18:27:10 +00:00
David Lawrence Ramsey
492e501fb3
document the "none" and "default" syntaxes in nanorc.5
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 05:08:01 +00:00
David Lawrence Ramsey
7aec89e9c9
document the explanation of the "none" syntax in nanorc.sample
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2962 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 05:01:30 +00:00
David Lawrence Ramsey
d152ad378b
port over Brand Huntsman's reserved "none" syntax to counteract his
...
"default" syntax when necessary (the latter *is* actually ported mostly
from his patch with a few tweaks; the "default-syntax" option is
apparently something else entirely)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2961 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 04:59:34 +00:00
David Lawrence Ramsey
5a584ccda3
treat color syntax names case sensitively, for consistency with how
...
their filename regexes are treated
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2960 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 04:34:27 +00:00
David Lawrence Ramsey
179b1bad87
more color updates: add a "default" syntax that takes no extensions for
...
those files that don't match any other syntax's extensions (ported from
Brand Huntsman's old patch, but modified to work with a syntax named
"default" instead of requiring a "default-syntax" keyword, and to fit
into the existing color architecture)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2959 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 04:23:29 +00:00
David Lawrence Ramsey
eab0fd808c
the old assert is actually needed, so put it back too
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2958 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 03:05:53 +00:00
David Lawrence Ramsey
04f65f2e17
revert previous simplification, as it only moved complexity from one
...
place to another, and add formatting fixes to the old code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2957 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-08-01 02:18:05 +00:00
David Lawrence Ramsey
4ab80154e9
simplify do_cursorpos(), and remove an unneeded assert from it
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2953 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-31 18:51:51 +00:00
David Lawrence Ramsey
c879f55691
in parse_syntax(), flag duplicate syntax names as errors
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2952 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-30 21:53:05 +00:00
David Lawrence Ramsey
6135bf3f6b
port over more of Brand Huntsman's old patch: a color syntax specified
...
on the command line will now override the syntax associated with the
current file extension
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2951 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-30 21:24:56 +00:00
David Lawrence Ramsey
2385c1aa9b
port over more of Brand Huntsman's old patch (with a few tweaks):
...
compile the file extension regexes on an as-needed basis too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2948 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-29 21:42:08 +00:00
David Lawrence Ramsey
3f4520b348
fix display breakage
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2946 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-29 03:28:09 +00:00
David Lawrence Ramsey
6d8e495c37
remove still more redundant screen updates; change all wrefresh() calls
...
to wnoutrefresh() calls, except for those in total_update() and
do_credits(); call doupdate() just before using blocking input, since
nano spends the most time using it, for blocking input; and only do
constant sursor position display if we're just about to use blocking
input
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2943 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-26 14:42:57 +00:00
David Lawrence Ramsey
96452cb60c
handle invalid multibyte characters more efficiently
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2941 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-26 06:13:45 +00:00
David Lawrence Ramsey
3fe08acd27
and don't let a SIGWINCH throw out the changes made by the alternate
...
spell checker, either
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2938 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-26 01:17:16 +00:00
David Lawrence Ramsey
b18482e1b0
simplify the previous fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2936 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-26 00:06:34 +00:00
David Lawrence Ramsey
4401862e12
fix resizing while the alternate spell checker is running
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2935 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 23:40:12 +00:00
David Lawrence Ramsey
3f12ada4ef
add various fill-related cleanups, plus some related cosmetic and
...
formatting fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2934 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 22:54:16 +00:00
David Lawrence Ramsey
520a90c8d9
since the total number of lines in a file is the same as the number of
...
its last line when all its lines are numbered properly, use that in
place of openfile->totlines, and eliminate references to
openfile->totlines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2933 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 21:23:11 +00:00
David Lawrence Ramsey
22ae034f2d
add more miscellaneous mouse support-related fixes, and move
...
do_statusbar_output() after do_statusbar_mouse(), to match do_output()'s
being after do_mouse() in nano.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 20:01:57 +00:00
David Lawrence Ramsey
3d5e94560d
in do_mouse(), avoid redundant screen updates by using edit_redraw()
...
instead of edit_refresh(), and remove now-erroneous code that disables
setting the mark while in view mode
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2928 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 19:04:20 +00:00
David Lawrence Ramsey
8e94234b00
rename do_word_count() do_wordlinechar_count(), and simplify its final
...
message a bit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2925 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 04:21:46 +00:00
David Lawrence Ramsey
72936854c4
expand do_word_count() to also count the number of lines and characters
...
in the file or selection, as wc does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2924 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 03:47:08 +00:00
David Lawrence Ramsey
7ea09e540f
move mark setting, deleting, backspacing, tabbing, and entering of
...
newlines to text.c too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2923 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-25 02:41:59 +00:00
David Lawrence Ramsey
691698a954
move advanced text operations (command execution in a buffer, wrapping,
...
spell checking, justifying, and word counting) to their own source file,
text.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2919 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-24 19:57:51 +00:00
David Lawrence Ramsey
27865304d7
remove more redundant screen updates in edit_scroll(), and add a few
...
more miscellaneous cleanups
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2914 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-23 20:39:41 +00:00
David Lawrence Ramsey
c009759c23
allow scrolling more than editwinrows lines via edit_scroll(), take 2
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2912 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-22 23:17:19 +00:00
David Lawrence Ramsey
47bb888ad2
revert broken edit_scroll() changes for now
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2911 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-22 22:56:03 +00:00
David Lawrence Ramsey
44ca4f898c
allow scrolling more than editwinrows lines via edit_scroll()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2910 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-22 22:19:36 +00:00
David Lawrence Ramsey
61f567378a
display invalid multibyte sequences as Unicode FFFD, take 2; also clean
...
up the character-parsing functions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2909 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-21 22:12:03 +00:00
David Lawrence Ramsey
3a9a32996b
in do_find_bracket(), add comments and minor cleanups
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2905 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-21 02:20:01 +00:00
David Lawrence Ramsey
c4037f3055
move do_(next|prev)_word(_void())? to move.c too
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2904 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-20 21:31:19 +00:00
David Lawrence Ramsey
e99494f21a
add miscellaneous color and openfilestruct cleanups, and move the
...
openfilestruct functions to nano.c, since they're no longer specific to
file operations
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2903 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-20 21:08:38 +00:00
David Lawrence Ramsey
ca62f9fa2b
move the paragraph-searching functions to move.c, as they're movement
...
functions, and make them call check_statusblank() too; also reorder some
other movement functions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2902 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-20 19:24:11 +00:00
Jordi Mallach
e4b0742e9e
Update French manpages by Jean-Philippe Guérard.
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2898 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-19 15:07:35 +00:00
David Lawrence Ramsey
239c3d47dd
in nanogetstr(), make sure that magichistory is properly updated when we
...
change it and then move up
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2897 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-19 05:58:00 +00:00
David Lawrence Ramsey
96e6d56571
in find_history() and get_history_completion(), make parameters const
...
where possible
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2896 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-19 04:53:45 +00:00
David Lawrence Ramsey
e3bae98aab
in mbstrchr(), don't count matches between valid and invalid multibyte
...
sequences anymore, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2894 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 19:47:13 +00:00
David Lawrence Ramsey
91d468d7fd
for consistency, revert handling of cases where a search string and a
...
match to it are not the same length in bytes, since the same technique
can't be made to work with tab completion matches
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2893 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 19:29:27 +00:00
David Lawrence Ramsey
7dc531a801
miscellaneous minor fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2892 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 18:43:39 +00:00
David Lawrence Ramsey
0e581b3524
make sure that the current position in the history list is properly set
...
to the bottom if we cancel out of the prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2890 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 07:48:50 +00:00
David Lawrence Ramsey
a0aa4df041
properly handle cases where a search string and a match to it are not
...
the same length in bytes, i.e, when the latter contains invalid
multibyte characters interpreted as normal characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2888 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 05:17:59 +00:00
David Lawrence Ramsey
f7bcbeb87e
don't display invalid multibyte sequences as Unicode 0xFFFD in
...
display_string() anymore, as it's inconsistent with how we handle them
elsewhere
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2886 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-18 03:23:37 +00:00
David Lawrence Ramsey
50a33dbbb7
per DB'S patch, in do_spell(), when displaying an error message from
...
do_(int|alt)_speller(), don't display the error message corresponding to
errno if errno is zero
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2882 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-17 03:50:22 +00:00
David Lawrence Ramsey
7eb30a8353
change NANO_WIDE #define to ENABLE_UTF8, as the latter is clearer
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2881 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-17 02:40:07 +00:00
David Lawrence Ramsey
c104ef15a6
simplify get_totals() (renamed get_totsize()) to only get the total
...
number of characters, and eliminate dependence on its old ability to get
the total number of lines by renumber()ing when necessary and using the
number of the last line of a filestruct
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2879 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-17 01:44:35 +00:00
David Lawrence Ramsey
5e146e815f
add missing check_statusblank() calls
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2878 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-17 00:01:18 +00:00
David Lawrence Ramsey
157ce9120b
speed up character output, and fix edit_refresh() breakage
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2877 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 23:36:10 +00:00
David Lawrence Ramsey
4d46437f87
properly overhaul edit_scroll() to update the screen on its own this
...
time, convert the vertical movement functions to use the new version of
it, and simplify them where possible
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2876 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 22:50:30 +00:00
David Lawrence Ramsey
5b44f373fd
really fix color breakage by decoupling edit_update() and
...
edit_refresh(); edit_update() is only called without edit_refresh() in
do_gotolinecolumn() if allow_update is FALSE, and in edit_refresh()
itself if edittop is out of range of current
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2875 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 22:47:12 +00:00
David Lawrence Ramsey
8f4762a842
cosmetic and #ifdef fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2874 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 22:35:11 +00:00
David Lawrence Ramsey
8f1afee813
fix color breakage; also, in main(), when opening files with
...
"+LINE,COLUMN" arguments on the command line, don't update the screen
when moving to their specified lines and columns
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2873 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 07:06:36 +00:00
David Lawrence Ramsey
e5806be519
clean up edit_redraw() a bit
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2871 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-16 02:12:18 +00:00
David Lawrence Ramsey
cb8d845ad7
still more miscellaneous color fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2869 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-15 01:08:52 +00:00
David Lawrence Ramsey
a74f2f8618
split overly long changelog entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2867 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-15 00:22:28 +00:00
David Lawrence Ramsey
8f948fa1eb
handle unspecified foreground colors
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2866 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-15 00:17:13 +00:00
David Lawrence Ramsey
0532296a10
more miscellaneous minor fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2864 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-14 23:51:52 +00:00
David Lawrence Ramsey
b802a13c5a
it turns out edit_redraw() is needed after all when doing
...
PageUp/PageDown; revert all the movement code and edit_scroll() changes
except for added comments and edit_scroll() simplifications
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2860 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-14 22:15:09 +00:00
David Lawrence Ramsey
d2361f0761
add minor fixes to the new color code, and merge parts of Brand
...
Huntsman's old patch in where applicable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2858 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-07-14 18:33:51 +00:00