Commit Graph

2237 Commits (e3eed024a082a7f3120407bebf6a84a45941b22e)

Author SHA1 Message Date
David Lawrence Ramsey 50d78a6f9a don't allow filenames entered at the "Write File" prompt or the "Insert
File" prompt to contain nulls


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3971 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-27 02:41:59 +00:00
David Lawrence Ramsey b6c4dbffdb in do_spell(), when setting i to the return value of
write_(marked_)?file(), use the "?" operator instead of an if/else
clause


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3970 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-25 22:38:17 +00:00
David Lawrence Ramsey 8125e08bfa miscellaneous comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3969 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-25 22:27:22 +00:00
David Lawrence Ramsey 90c5a908ee fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3968 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-25 21:55:25 +00:00
David Lawrence Ramsey d21eea02ac more miscellaneous documentation updates
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3965 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-25 18:26:07 +00:00
David Lawrence Ramsey 1c9dd109bf in edit_draw(), fix potential warnings when assigning -1 to paintlen by
using if/else clauses instead of "?" operators


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3964 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-21 17:05:04 +00:00
David Lawrence Ramsey 5a8182e7df in nano.h, rename NANO_.*ALTKEY to NANO_.*METAKEY, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-21 04:20:53 +00:00
David Lawrence Ramsey 292f7ef414 in nano.h, rename NANO_ALT_.* to NANO_META_.*, for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3962 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-21 04:15:04 +00:00
David Lawrence Ramsey b7f6bf794d more miscellaneous cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3961 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-21 04:11:18 +00:00
David Lawrence Ramsey 79f946b682 miscellaneous cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3960 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-21 04:06:13 +00:00
David Lawrence Ramsey 6b8b3ec105 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3958 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-20 14:40:40 +00:00
David Lawrence Ramsey 16fd49b854 GNU nano 2.0.1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3956 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-20 14:38:31 +00:00
David Lawrence Ramsey 21b946e45d in do_replace_highlight(), include the code to display zero-length
matches even when regex.h isn't found, as it can also be used to display
zero-length Unicode characters


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3954 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-10 20:13:38 +00:00
David Lawrence Ramsey 606d5a1e22 more cosmetic copyright notice fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3952 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-10 03:01:16 +00:00
David Lawrence Ramsey cb801d63a3 cosmetic copyright notice fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3950 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-10 02:47:11 +00:00
David Lawrence Ramsey 6c6d2bc4db in NEWS, add missing entries for nano 1.0.2 and 1.0.3, since 1.1.0
includes their changes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3949 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-08 18:03:53 +00:00
David Lawrence Ramsey 6f751500cc fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3945 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-08 02:52:46 +00:00
David Lawrence Ramsey a93023f14b in get_full_path(), fix problem where only paths would be returned when
both paths and filenames should have been


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3944 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-08 02:48:15 +00:00
David Lawrence Ramsey b24cb0cd19 in do_writeout(), fix problem where a file could sometimes be
overwritten without a warning prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3942 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-07 22:57:13 +00:00
David Lawrence Ramsey 6c3a399817 in get_full_path(), remove unneeded assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3939 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-07 21:41:05 +00:00
David Lawrence Ramsey 8965af5874 in do_writeout(), for consistency, when saving a file with no name,
don't allow overwriting an existing file when in restricted mode


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3937 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-07 21:22:14 +00:00
David Lawrence Ramsey 4967eb8fc0 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3936 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-07 21:08:17 +00:00
David Lawrence Ramsey 366c509304 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3935 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-06 16:04:17 +00:00
David Lawrence Ramsey f8df4a0fcb GNU nano 2.0.0
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3933 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-06 16:03:12 +00:00
David Lawrence Ramsey f0c6e78a6e clean up nano.spec.in some more
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3932 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-05 17:13:44 +00:00
David Lawrence Ramsey 6b9e7cf5be update nano.spec.in for newer RPM-based distributions, adapted from the
nano 1.3.12-1.1.spec file in Fedora Rawhide


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-05 03:44:41 +00:00
David Lawrence Ramsey 1bb4db6409 add POV-Ray syntax from Donnie Berkholz, with a few tweaks of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3928 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-11-02 06:21:43 +00:00
David Lawrence Ramsey e693023de8 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3927 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-30 17:08:32 +00:00
David Lawrence Ramsey 08cf2528e1 update AUTHORS for the 2.0 branch of nano
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3925 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 22:55:08 +00:00
Jordi Mallach 40dcea0e2e Update French manpages by Jean-Philippe Guérard.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3924 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 22:03:25 +00:00
David Lawrence Ramsey cb6ad31a8e fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3923 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 21:57:24 +00:00
David Lawrence Ramsey 057f239b43 update faq.html for the 2.0 branch of nano
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3922 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 21:55:22 +00:00
David Lawrence Ramsey 890eab8270 update nano.spec.in for the 2.0 branch of nano
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3921 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 21:51:21 +00:00
David Lawrence Ramsey 3660bc6a46 in nano.1, nanorc.5, and rnano.1, add minor wording fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3919 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-28 19:21:12 +00:00
David Lawrence Ramsey 9f0fccd713 in nano.texi, add minor punctuation fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3917 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-27 03:07:49 +00:00
David Lawrence Ramsey 65ab1c87b7 in nano.texi, add minor wording fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3916 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-27 02:57:35 +00:00
David Lawrence Ramsey 0c0cafbc19 comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3915 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-26 15:55:39 +00:00
David Lawrence Ramsey 76520a8ec4 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3914 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-25 15:28:20 +00:00
David Lawrence Ramsey 1295699d03 GNU nano 1.9.99pre3
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3912 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-25 15:27:08 +00:00
David Lawrence Ramsey 385e772e54 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3908 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-17 15:28:49 +00:00
David Lawrence Ramsey ab8c7162d3 in do_cut_text(), when uncutting text in the process of copying it,
always set placewewant, as do_uncut_text() does, so that the current
line is always updated properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3907 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-16 19:44:13 +00:00
David Lawrence Ramsey 22066a2cad fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3903 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-14 16:04:44 +00:00
David Lawrence Ramsey c603fefbf6 import the latest version of ac_define_dir.m4
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3902 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-14 01:13:13 +00:00
David Lawrence Ramsey b5652a4d56 fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3901 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-13 16:35:57 +00:00
David Lawrence Ramsey 98bca94758 in input_tab(), if the tab-completed path is a directory, make sure
enough space is allocated before tacking a slash onto the end of it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3900 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-13 16:18:40 +00:00
David Lawrence Ramsey 89ae4a343c miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3898 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-08 15:21:23 +00:00
David Lawrence Ramsey e4769dfeab in faq.html, update the question in section 4.13 to match the version of
it in the answer section


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3895 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-06 15:52:41 +00:00
David Lawrence Ramsey 85307fe28e in input_tab(), since the field precision operator used in the sprintf()
uses ints and not size_t's, replace it with two strncpy()s, which use
size_t's


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3892 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-03 18:46:00 +00:00
David Lawrence Ramsey 1755e28ad9 in parse_help_input(), add 'E' and 'e' as aliases for Exit, for
consistency with the file browser


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3891 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-02 21:25:41 +00:00
David Lawrence Ramsey 52804ab8e8 in doc/syntax/c.nanorc, simplify "undef", "ifn?def", "elif", and "else"
in the preprocessor regexes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3888 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-02 17:01:58 +00:00
David Lawrence Ramsey 6e379c254e Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3887 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-02 04:09:48 +00:00
David Lawrence Ramsey 2953f783e3 GNU nano 1.9.99pre2
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3885 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-10-02 04:08:20 +00:00
David Lawrence Ramsey b9f007430b in do_statusbar_input(), if we get a verbatim input sequence ending with
Ctrl-J, remove the Ctrl-J from the buffer before interpreting it as
Enter, so that it doesn't erroneously fall through to the edit window
and get interpreted as Justify


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3882 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-09-29 15:45:10 +00:00
David Lawrence Ramsey 012425c401 in doc/syntax/c.nanorc, add "size_t" and "ssize_t" to the types regexes,
and simplify "signed" and "unsigned" in them


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3878 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-09-16 02:40:31 +00:00
David Lawrence Ramsey d2b1f52d17 add missing changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3870 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-30 14:10:49 +00:00
David Lawrence Ramsey 7d15d1d8d8 in get_input(), simplify to avoid an unnecessary key_buffer_len check
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3869 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-30 13:52:33 +00:00
David Lawrence Ramsey 3879528945 make sure that the statusbar cursor position is always properly reset
when we get out of all statusbar prompts


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3865 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-29 20:54:38 +00:00
David Lawrence Ramsey 185dc6acd0 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3864 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-29 17:31:41 +00:00
David Lawrence Ramsey 890ea443d7 GNU nano 1.9.99pre1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-29 17:29:57 +00:00
Jordi Mallach 495fe91e97 French manpage translation updates.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3861 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-28 23:33:39 +00:00
David Lawrence Ramsey 89ca96bd88 in handle_sigwinch(), just in case we're in the statusbar prompt, reset
the statusbar cursor position when resizing the window


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3859 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-28 14:31:29 +00:00
David Lawrence Ramsey d6972ae74f cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3856 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-26 16:57:33 +00:00
David Lawrence Ramsey 5187b504d4 add missing changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3855 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-26 16:51:42 +00:00
David Lawrence Ramsey 17408b52e5 in do_browser(), fix potential segfault when going to a directory that
doesn't begin with '/'


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3852 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-26 15:46:20 +00:00
David Lawrence Ramsey 98332d40dc properly preserve the cursor position when going from the "Read File" or
"Save File As" prompt to the file browser to the "Go To Directory"
prompt, and then canceling back to the "Read File" or "Save File As"
prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3850 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-26 15:14:55 +00:00
David Lawrence Ramsey 56ec5925f3 in shortcut_init(), make the help shortcut for the "Go to Directory"
prompt call do_browser_help() instead of do_help_void(), as this prompt
is only accessible inside the file browser


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3847 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-25 19:26:48 +00:00
David Lawrence Ramsey f7b8783eaa in shortcut_init(), remove the ^X shortcut for CutTillEnd at the search
prompt, as official Pico doesn't include it, and it can be confused with
Exit


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3846 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-22 18:48:13 +00:00
David Lawrence Ramsey 5c55e85410 in help_init(), adjust the first two chunks of the main help text so
that they're no more than 509 characters again


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3843 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-19 11:11:51 +00:00
David Lawrence Ramsey 5a22dbb159 in digits(), remove the assumption that n is always positive, although
it always is in this particular case


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3842 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-18 20:30:25 +00:00
David Lawrence Ramsey f351176756 wording fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3839 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-07 12:58:28 +00:00
David Lawrence Ramsey 30d7f33954 in doc/syntax/c.nanorc, remove redundancy from the file extension
regexes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3837 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-03 02:44:22 +00:00
David Lawrence Ramsey 6da4e56f1e revert redundant change
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3836 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-02 19:30:24 +00:00
David Lawrence Ramsey cbab273a08 in edit_draw(), simplify the setting of paintlen
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3833 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-02 18:38:45 +00:00
David Lawrence Ramsey 28a6802307 in doc/syntax/c.nanorc, tweak the multiline comment regex to not color
lines so aggressively


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3832 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-08-02 17:02:49 +00:00
David Lawrence Ramsey 2578025e7f cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3831 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-31 23:29:22 +00:00
David Lawrence Ramsey 5b17ef85e7 revert erroneous change
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3830 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-31 23:28:27 +00:00
David Lawrence Ramsey 3714e07d7b in parse_kbinput(), translate KEY_EVENT to ERR if we get it, so that
it's properly ignored


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3829 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-31 18:25:25 +00:00
David Lawrence Ramsey 7b0531aa0b per Benno Schulenberg's patch with a few tweaks by me, add various
clarifications to translated strings


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3828 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-31 01:30:31 +00:00
David Lawrence Ramsey 57703086e2 make all the descriptions of -O/--morespace consistent
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3826 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-30 23:26:18 +00:00
David Lawrence Ramsey 550ca10378 in nano.texi, add missing description of the -O/--morespace command line
option


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3825 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-30 23:18:15 +00:00
David Lawrence Ramsey ad344e9d1d make bad_mbchar a static const char* const in chars.c, as its value
doesn't change


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3823 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-29 14:37:47 +00:00
David Lawrence Ramsey 6827146dd2 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3822 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-28 17:07:46 +00:00
David Lawrence Ramsey b159f941e8 per Benno Schulenberg's patch with a few additions by me, fix
punctuation relating to "i.e." in comments and documentation


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3821 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-28 17:06:27 +00:00
David Lawrence Ramsey c7c49c48da in doc/Makefile.am, don't include nanorc.sample in EXTRA_DIST, as it's
only useful when we're building from source, as opposed to building a
distribution; also, tweak doc/Makefile.am and doc/man/Makefile.am to
remove usage of the += operator again


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3819 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-26 17:42:16 +00:00
David Lawrence Ramsey 4ce755072c add miscellaneous minor fixes to the faq, and preemptively update its
version number


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3818 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-26 03:20:37 +00:00
David Lawrence Ramsey 2f702285eb in toggle_init(), make sure that a blank line is not displayed after the
Meta-Q toggle when mouse support is disabled and we're in restricted
mode, and that it is displayed all other times


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3817 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-25 22:24:48 +00:00
David Lawrence Ramsey 592ccf9a5e update changelog entry: the renaming of the scroll_dir enums also fixes
compilation on NetBSD 3.0, as reported by Adam Wysocki


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3816 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-25 21:19:02 +00:00
David Lawrence Ramsey bd28ee472b when DISABLE_HELP is defined, leave out some unused shortcut and toggle
list parameters


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3815 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-25 21:13:30 +00:00
David Lawrence Ramsey 1b4ae6997e in parse_escape_seq_kbinput(), Don't ignore escape sequences anymore;
instead, return the corresponding key so that parse_kbinput() can
translate it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3814 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-25 19:23:35 +00:00
David Lawrence Ramsey 97cd67c3d4 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3812 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-24 19:15:35 +00:00
David Lawrence Ramsey f28ff9dece in parse_kbinput(), properly handle combined control character and
escape sequences, so that e.g. Esc Esc / will work properly when the /
is on the numeric keypad and NumLock is off


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3811 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-24 18:53:54 +00:00
David Lawrence Ramsey ec177be416 in do_help(), don't allow moving down a page when the last line of the
help text is onscreen


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3810 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-23 19:57:30 +00:00
David Lawrence Ramsey 5370b0cd19 in parse_escape_seq_kbinput(), handle unknown and unignored escape
sequences once instead of handling them twice in parse_kbinput()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3807 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-23 17:54:35 +00:00
David Lawrence Ramsey 19f3bd6546 in parse_kbinput(), translate extended keypad keys to their ASCII
equivalents even when we hit Escape once or twice before typing them,
for consistency; also, if they're defined, translate KEY_SUP into
NANO_PREVLINE_KEY and KEY_SDOWN into NANO_NEXTLINE_KEY, since they are
sometimes generated by Shift-Up and Shift-Down


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3806 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-23 17:25:38 +00:00
David Lawrence Ramsey a44ca78a50 in parse_kbinput(), properly handle combined meta and escape sequences,
so that e.g. Meta-+ will work properly when the + is on the numeric
keypad and NumLock is off


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3805 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-23 16:00:03 +00:00
David Lawrence Ramsey 118cb37e63 in mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr(), don't
allocate space for multibyte characters until we've asserted that the
parameters we're using aren't NULL


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3803 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-22 16:45:11 +00:00
David Lawrence Ramsey d3887dc695 update UPGRADE to fix the description of +LINE,COLUMN
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3802 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-22 15:57:28 +00:00
David Lawrence Ramsey c81aa0641c update UPGRADE to account for the ability to indent unmarked lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3801 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-21 16:44:44 +00:00
David Lawrence Ramsey f8758833cd fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3800 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 19:42:47 +00:00
David Lawrence Ramsey 4ac129c4bf when using slang 2.x, call SLutf8_enable() with an argument of 1 instead
of TRUE, as that's the proper way to force its UTF-8 support on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3799 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 19:40:54 +00:00
David Lawrence Ramsey e53e12559f rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3798 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 15:50:19 +00:00
David Lawrence Ramsey 7c06be5ff7 fix changelog entries
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3795 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 00:38:27 +00:00
David Lawrence Ramsey 3bb45ae00b per Daniel Richard G.'s patch, in parse_rcfile(), add missing
ENABLE_COLOR #ifdef around the second check for a syntax with no color
commands, to fix compilation without color support


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 00:21:17 +00:00
David Lawrence Ramsey 6ff22e7020 rename the values of the scroll_dir enum to UP_DIR and DOWN_DIR, since
UP is defined as a termcap value in Tru64's curses.h, which breaks
compilation


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3793 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-19 00:14:52 +00:00
David Lawrence Ramsey 0a4b737b73 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3792 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-18 18:28:10 +00:00
David Lawrence Ramsey 32a3ce4cd2 revert unneeded #ifdef fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3791 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-18 18:25:56 +00:00
David Lawrence Ramsey 935594b14a add various cosmetic and #ifdef fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3790 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-18 18:16:30 +00:00
David Lawrence Ramsey a5ad825f30 improve the display of bools in debugging statements
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3789 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-13 13:28:13 +00:00
David Lawrence Ramsey f968a18a3f in replace_regexp(), remove unnecessary casting of c to int
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3788 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-13 13:27:16 +00:00
David Lawrence Ramsey eec40df2a1 in do_insertfile(), remove redundant code: we only mark the file as
modified if we're not in multibuffer mode, in which case view mode
should never be on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3787 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-13 12:18:57 +00:00
David Lawrence Ramsey c346701d09 in do_insertfile(), if we don't insert a file into a new buffer,
properly update the x-coordinate to account for the number of characters
inserted on the current line


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3786 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-13 04:19:53 +00:00
David Lawrence Ramsey 9a145d906f in do_insertfile(), if we're in view mode, as we can be if multibuffer
mode is on, don't mark the file as modified (and remove the code that
does this in execute_command()); also, if we execute a command in a new
buffer, move back to the beginning of the first line of the buffer
afterwards, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3785 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-13 03:06:36 +00:00
David Lawrence Ramsey 1e1117775f in nano.h, remove the manual disabling of color support if regex.h isn't
found, as configure.ac now handles that


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3782 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-12 19:12:40 +00:00
David Lawrence Ramsey 84b9f4bd17 in configure.ac, if regex.h isn't found, display an error message if we
try to enable color support; also, fix the spacing of the error message
displayed when slcurses.h isn't found


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3781 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-12 18:59:29 +00:00
David Lawrence Ramsey 82697f2fcd don't include sys/ioctl.h in nano.c when NANO_TINY is defined, as
ioctl() is never used then


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3780 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-12 18:57:04 +00:00
David Lawrence Ramsey 1a473483b1 in nano.h, if we don't have nanorc support, disable color support, as it
depends on the use of the nanorc


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3779 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-12 18:09:37 +00:00
David Lawrence Ramsey c6c98f7c7a make Jordi's email address, and the description of what the manual pages
were written for, consistent in the documentation


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3778 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-12 16:50:43 +00:00
David Lawrence Ramsey b8592ce2bb in do_browse_from(), don't bother freeing path if it's NULL
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3777 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-11 18:17:56 +00:00
David Lawrence Ramsey b08c9f004c revert erroneous change
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3776 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-11 18:12:24 +00:00
David Lawrence Ramsey 87b37bde9b add miscellaneous minor cleanups to do_browser(), do_browse_from(), and
browser_init()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3775 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-11 17:25:12 +00:00
David Lawrence Ramsey 4ea2eac360 comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-09 00:52:16 +00:00
David Lawrence Ramsey 4e68588596 revert erroneous change
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3770 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-09 00:47:21 +00:00
David Lawrence Ramsey 7f3fdb4790 in titlebar(), don't display any blank space for the state if we're in
the file browser, as Pico doesn't, and since path is always assumed to
be NULL if DISABLE_BROWSER is defined, put the check for its being NULL
in a DISABLE_BROWSER #define


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3769 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-08 23:45:15 +00:00
David Lawrence Ramsey c2e585ef6c per John M. Gabriele's patch with a few tweaks by me, in
doc/syntax/ruby.nanorc, improve highlighting of constants


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3764 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-07 13:54:38 +00:00
David Lawrence Ramsey 2c36e2eb00 consolidate do_scroll_(up|down)() into do_(up|down)(), as they have a
lot of common code


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3763 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-06 22:17:47 +00:00
David Lawrence Ramsey bf104950fd in do_scroll_up() and do_scroll_down(), fix problems where, after
scrolling, the previous and current lines would not be updated properly
if the current line was not the first or last line of the edit window


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3762 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-06 20:40:53 +00:00
David Lawrence Ramsey aee00d4d14 if the mark isn't on, allow Meta-} and Meta-{ to indent and unindent
only the current line, just as it would if the mark covered only the
current line, instead of displaying a statusbar message and quitting


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3758 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 18:42:22 +00:00
David Lawrence Ramsey 85e35e67a2 in get_full_path(), don't return NULL when the current directory doesn't
exist, as we can still recover from that, and also add various cleanups


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 14:14:06 +00:00
David Lawrence Ramsey 51b7b0e7d8 in browser_refresh() and titlebar(), don't display overly long filenames
with ellipses if the number of columns is extremely small; also, in
certain places, call wnoutrefresh(bottomwin) after calling
blank_statusbar(), in order to ensure that the statusbar is actually
blanked


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 06:38:47 +00:00
David Lawrence Ramsey 567d471681 in display_string(), properly handle buf[start_index]'s being a null
terminator


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3749 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 05:31:21 +00:00
David Lawrence Ramsey a7bdd2e9c6 in do_browse_from(), during the operating directory check, if path isn't
NULL, don't bother freeing it before mallocstrcpy()ing operating_dir
into it, as the latter operation will free it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 03:38:49 +00:00
David Lawrence Ramsey 2f7c1a0613 calculate width in browser_init(), as it's more consistent
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3741 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 02:05:24 +00:00
David Lawrence Ramsey b520d509cc still more cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3740 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 01:13:19 +00:00
David Lawrence Ramsey c0ba4bf3e0 simplify and remove redundancies from various bits
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3739 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 01:10:18 +00:00
David Lawrence Ramsey f8d085d2ed in browser_refresh(), fix problem where width wouldn't be properly
initialized sometimes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3738 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-04 23:47:22 +00:00
David Lawrence Ramsey ed467e50ff in browser_refresh(), add translator comments explaining the maximum
intended lengths of "(dir)" and "(parent dir)"; also add various
formatting fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-03 18:40:53 +00:00
David Lawrence Ramsey 6b90657d94 more miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 18:45:45 +00:00
David Lawrence Ramsey 85ffaeeefc in browser_refresh(), if a filename is too long, truncate and display an
ellipsis before it, as titlebar() does; also add various miscellaneous
minor fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3719 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 18:29:49 +00:00
David Lawrence Ramsey c021925abb in browser_init(), fix off-by-one error when calculating longest that
kept the rightmost column of the screen from being used


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 17:00:07 +00:00
David Lawrence Ramsey 21cdee5517 update changelog entries
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3713 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 22:36:29 +00:00
David Lawrence Ramsey 6f499096ad in do_browser() and do_help(), simplify screen update handling
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3708 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 21:01:55 +00:00
David Lawrence Ramsey a4e92c8ad6 in striponedir(), return the stripped path instead of modifying path
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3704 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 14:14:40 +00:00
David Lawrence Ramsey fef232a672 in striponedir(), since all the strings passed to this are dynamically
allocated, use null_at() to strip the directory from the string


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 13:58:29 +00:00
David Lawrence Ramsey 8cd0d2c751 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3702 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:27:15 +00:00
David Lawrence Ramsey 0fd5d60477 revert last changes, as the "Go to Directory" prompt can allow movement
anywhere, so the error message won't make sense in some cases


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3701 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:26:14 +00:00
David Lawrence Ramsey 6cefb9f21a in do_browser(), display an error messsage on the statusbar if we try to
move up from "/" via the "Go to Directory" prompt, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:03:42 +00:00
David Lawrence Ramsey d04037760d in do_browser(), after entering "..", select the directory we were in
before instead of the first filename in the list, as Pico does; add new
function browser_select_filename() to help do this properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3698 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 06:41:31 +00:00
David Lawrence Ramsey ef45a2528c add missing comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 05:12:53 +00:00
David Lawrence Ramsey 727c244ab6 in findnextfile(), simplify the uses of tail()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 04:46:24 +00:00
David Lawrence Ramsey 68e2c375e7 in browser_refresh(), for the ".." entry, display "(parent dir)" instead
of "(dir)", as Pico does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3695 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 03:19:28 +00:00