Commit Graph

2237 Commits (e3eed024a082a7f3120407bebf6a84a45941b22e)

Author SHA1 Message Date
David Lawrence Ramsey e3eed024a0 convert documentation to GPLv3/GFDLv1.2
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4161 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-23 04:34:35 +00:00
David Lawrence Ramsey a22b2672a6 in the French manpage translations, make all copyright notices
consistent, and in rnano.1, add missing copyright notice from
nano-tiny.1, which rnano.1 is based on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4160 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-21 17:00:42 +00:00
David Lawrence Ramsey 093a441337 in rnano.1, add missing copyright notice from nano-tiny.1, which rnano.1
is based on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4159 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-21 16:38:43 +00:00
David Lawrence Ramsey 64b8f423b2 properly handle more cases of inserting a file/uncutting text with the
mark on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4158 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-16 14:45:17 +00:00
David Lawrence Ramsey ee89418102 more fixes for uncutting text/inserting files with the mark on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4156 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-16 03:23:30 +00:00
David Lawrence Ramsey 908b127b44 in do_insertfile(), make sure the mark is always properly positioned
after inserting a one-line file with the mark on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4152 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-16 02:34:23 +00:00
David Lawrence Ramsey bf70087541 in Makefile.am, remove erroneous backslash after ChangeLog.pre-2.1 in
EXTRA_DIST, so that "make dist" works again


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4151 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-15 22:40:33 +00:00
David Lawrence Ramsey d0035b4ab2 convert to GPLv3 or later
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4147 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-11 05:17:36 +00:00
David Lawrence Ramsey fd21be19fe update the copyright notice on the tab completion code originally from
busybox to account for modifications


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4146 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-10 22:12:39 +00:00
David Lawrence Ramsey 273c1139c0 simplify ngetdelim(), and update the copyright notice on ngetline() and
ngetdelim() to account for modifications


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4144 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-10 17:03:29 +00:00
David Lawrence Ramsey d1ab89a929 in copy_from_file(), fix potential segfault after uncutting one line of
text with the mark on by properly preserving the beginning of the mark;
also, make sure the mark is always properly positioned after uncutting
one line of text with the mark on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4141 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-07 20:21:39 +00:00
David Lawrence Ramsey 129dfb6323 in version(), display copyright notices
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4138 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-01 12:49:57 +00:00
David Lawrence Ramsey 396f665bb6 fix copyright notice and changelog entries
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4136 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-08-01 01:28:39 +00:00
David Lawrence Ramsey cb535630f6 update copyright notices to account for modifications
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4135 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-31 21:20:08 +00:00
David Lawrence Ramsey 1f5c89fd7b in faq.html, update RPM links for nano 2.0.x
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4134 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-29 16:30:27 +00:00
David Lawrence Ramsey fe1bc66893 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4133 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-14 16:41:40 +00:00
David Lawrence Ramsey 3678477e32 in copy_file(), assert that inn and out don't both point to the same
file


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4132 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-12 03:12:31 +00:00
David Lawrence Ramsey 9276f4d0b1 in nstrcasestr(), mbstrcasestr(), revstrstr(), revstrcasestr(), and
mbrevstrcasestr(), simplify and rewrite to use strncasecmp()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4131 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-10 22:54:58 +00:00
David Lawrence Ramsey a90e6c3240 in do_replace_loop(), fix problem where replacing e.g. single-byte
characters with multibyte ones could result in openfile->totsize's being
miscalculated


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4130 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-09 23:24:37 +00:00
David Lawrence Ramsey 36536670c8 typo fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4129 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-09 22:57:07 +00:00
David Lawrence Ramsey bebfd9fbb6 in mbstrncasecmp(), mbstrnlen(), mbstrpbrk(), and has_blank_mbchars(),
simplify by using for loops instead of while loops where possible, to
match the single-byte versions of these functions


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4127 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-09 22:36:32 +00:00
David Lawrence Ramsey ae46b91b7e in nstrcasestr(), mbstrcasestr(), revstrstr(), revstrcasestr(), and
mbrevstrcasestr(), return char* instead of const char*


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4126 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-06 13:44:13 +00:00
David Lawrence Ramsey 08077ec59a fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4123 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-02 15:49:05 +00:00
David Lawrence Ramsey 710583064f in nstrcasestr(), mbstrcasestr(), revstrstr(), revstrcasestr(), and
mbrevstrcasestr(), for efficiency, return haystack immediately if needle
is blank


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4122 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-02 15:45:13 +00:00
David Lawrence Ramsey 444f802d58 in nstrncasecmp() and mbstrncasecmp(), for efficiency, return zero
immediately if s1 and s2 point to the same string


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4121 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-07-01 21:46:00 +00:00
David Lawrence Ramsey 23a4e433bd in do_yesno_prompt(), remove redundant check for NO_HELP's being FALSE
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4118 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-06-30 21:19:42 +00:00
David Lawrence Ramsey 81acb97c37 add missing changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4116 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-06-28 17:46:04 +00:00
David Lawrence Ramsey ebc38fd106 further simplify processing of mouse events by consolidating if clauses
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4113 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-06-28 16:00:50 +00:00
David Lawrence Ramsey 3a504709b7 in do_mouseinput(), deal with clicks of the first mouse button again;
oddly, ncurses built without --enable-ext-mouse needs this, but ncurses
built with --enable-ext-mouse doesn't


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4112 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-29 17:01:12 +00:00
David Lawrence Ramsey 14aa37c692 in get_key_buffer(), fix inaccurate comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4111 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-25 16:54:06 +00:00
David Lawrence Ramsey a78b4354bb replace the current hackish check for a UTF-8 locale with a proper call
to nl_langinfo()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4110 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-25 14:39:40 +00:00
David Lawrence Ramsey bc65313104 more various mouse support-related simplifications
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4109 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-22 17:20:28 +00:00
David Lawrence Ramsey 54fdb75bd8 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4108 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-22 17:18:06 +00:00
David Lawrence Ramsey 3a5eaeb401 various mouse support-related simplifications, improvements, and fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4107 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-20 23:41:56 +00:00
David Lawrence Ramsey 7f8bfca081 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4106 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-15 19:33:56 +00:00
David Lawrence Ramsey b9fa1b1466 in do_mouseinput(), add mouse wheel support, per Helmut Jarausch's
suggestion


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4105 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-05-15 18:04:25 +00:00
David Lawrence Ramsey c88556cbb1 in TODO, add entries for fixing limitations with pasting text and
handling bad/incomplete UTF-8 sequences


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4101 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-23 15:39:01 +00:00
David Lawrence Ramsey ee43ea6a74 in backup_lines(), avoid a segfault when the mark begins and ends on the
line after the last line of the paragraph


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4099 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-22 15:04:05 +00:00
David Lawrence Ramsey 7622ca0456 in do_writeout(), if we're in restricted mode, we're not allowed to
write selections to files, so don't display the "Write Selection to
File" prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4092 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-21 18:57:47 +00:00
David Lawrence Ramsey 462720a166 simplify do_writeout()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4090 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-21 18:23:06 +00:00
David Lawrence Ramsey 380a70831a in tail(), remove unneeded if statement
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-19 04:12:54 +00:00
David Lawrence Ramsey b68cd635bc in doc/faq.html, add a new section 4.14 by John M. Gabriele, with a few
tweaks of mine, to explain how autoindent affects pasted text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4084 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 23:15:30 +00:00
David Lawrence Ramsey b8dfcb3896 fix various file-saving bugs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 19:09:44 +00:00
David Lawrence Ramsey 7fc36c77d2 fix various file- and rcfile-opening bugs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4080 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 18:22:13 +00:00
David Lawrence Ramsey dc588aea5d simplify real_dir_from_tilde()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4079 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 17:13:36 +00:00
David Lawrence Ramsey 6a8b350a0c in parse_kbinput(), interpret Cancel and Shift-Cancel
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4078 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 14:06:34 +00:00
David Lawrence Ramsey a31d54eebe in get_escape_seq_kbinput(), add missing comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4077 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 13:48:37 +00:00
David Lawrence Ramsey 88bf487dd0 fix changelog entries
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4076 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-18 13:45:57 +00:00
David Lawrence Ramsey 31023f0f4d in input_tab(), don't bother checking if num_matches is less than zero,
as it's a size_t and hence unsigned


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4075 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-17 18:12:19 +00:00
David Lawrence Ramsey e93cfd10c0 in real_dir_from_tilde(), fix long-standing problem where directory
names that began with "~", but that weren't users' home directories,
could be erroneously treated as users' home directories (e.g. "~d/"
would be treated as "~daemon/")


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4074 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-04-17 04:38:30 +00:00