]> git.wh0rd.org Git - nano.git/log
nano.git
20 years agofix cursor placement problem when inserting into the current buffer at
David Lawrence Ramsey [Mon, 15 Nov 2004 21:49:21 +0000 (21:49 +0000)]
fix cursor placement problem when inserting into the current buffer at
the bottom of the edit window with smooth scrolling on

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2098 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix cursor placement problem when inserting into the current buffer at
David Lawrence Ramsey [Mon, 15 Nov 2004 20:42:31 +0000 (20:42 +0000)]
fix cursor placement problem when inserting into the current buffer at
the top of the edit window

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2097 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fixes
David Lawrence Ramsey [Mon, 15 Nov 2004 18:44:30 +0000 (18:44 +0000)]
comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2096 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin cut_marked_segment(), respect concatenate_cut, as we need to use it
David Lawrence Ramsey [Sat, 13 Nov 2004 01:32:17 +0000 (01:32 +0000)]
in cut_marked_segment(), respect concatenate_cut, as we need to use it
if we do a marked cut and immediately follow it with a cut-to-end (which
uses that function)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2095 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_cut_text(), set concatenate_cut to TRUE unconditionally when doing
David Lawrence Ramsey [Fri, 12 Nov 2004 21:46:14 +0000 (21:46 +0000)]
in do_cut_text(), set concatenate_cut to TRUE unconditionally when doing
a marked cut; this fixes an incompatibility with Pico where an extra
line is uncut if we do a marked cut that includes the magicline and
immediately follow it with an unmarked cut

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2094 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoyet more cosmetic fixes
David Lawrence Ramsey [Fri, 12 Nov 2004 00:48:18 +0000 (00:48 +0000)]
yet more cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2093 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorevert the handle_sigwinch() change, as other breakage occurs when
David Lawrence Ramsey [Fri, 12 Nov 2004 00:09:20 +0000 (00:09 +0000)]
revert the handle_sigwinch() change, as other breakage occurs when
resizing or continuing from a suspend after a justify and it can't be
properly fixed without a rewrite

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2092 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix entry
David Lawrence Ramsey [Thu, 11 Nov 2004 22:02:48 +0000 (22:02 +0000)]
fix entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2091 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin handle_sigwinch(), call shortcut_init(FALSE) defore redisplaying the
David Lawrence Ramsey [Thu, 11 Nov 2004 21:50:01 +0000 (21:50 +0000)]
in handle_sigwinch(), call shortcut_init(FALSE) defore redisplaying the
main list, so that "UnJustify" isn't erroneously displayed when we
justify, suspend, and then continue; also add a few last cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2090 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin m4/Makefile.am, add glib-2.0.m4 to EXTRA_DIST, so that nano builds
David Lawrence Ramsey [Thu, 11 Nov 2004 14:35:31 +0000 (14:35 +0000)]
in m4/Makefile.am, add glib-2.0.m4 to EXTRA_DIST, so that nano builds
from CVS with automake 1.7.x again; for some reason, automake 1.9.x
didn't have a problem with its (erroneously) being left out; also add
some formatting fixes to other Makefile.am's dealing with too many or
too few blank lines

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2089 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoimprove another assertion
David Lawrence Ramsey [Mon, 8 Nov 2004 03:22:23 +0000 (03:22 +0000)]
improve another assertion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoimprove assertion
David Lawrence Ramsey [Mon, 8 Nov 2004 03:19:10 +0000 (03:19 +0000)]
improve assertion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix enum/#define conflict
David Lawrence Ramsey [Sun, 7 Nov 2004 23:05:48 +0000 (23:05 +0000)]
fix enum/#define conflict

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2086 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoallow blank buffers at the "Execute Command" prompt, and document it in
David Lawrence Ramsey [Sun, 7 Nov 2004 21:30:55 +0000 (21:30 +0000)]
allow blank buffers at the "Execute Command" prompt, and document it in
the help text

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2085 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodon't create a new buffer if we're in multibuffer mode and command
David Lawrence Ramsey [Sun, 7 Nov 2004 18:35:53 +0000 (18:35 +0000)]
don't create a new buffer if we're in multibuffer mode and command
execution mode

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2084 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin multibuffer mode, using a blank filename at the "Read File" prompt
David Lawrence Ramsey [Sun, 7 Nov 2004 18:22:33 +0000 (18:22 +0000)]
in multibuffer mode, using a blank filename at the "Read File" prompt
shouldn't cancel out of it

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2083 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agopartition the filestruct properly when executing a command
David Lawrence Ramsey [Sun, 7 Nov 2004 18:09:41 +0000 (18:09 +0000)]
partition the filestruct properly when executing a command

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2082 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoformatting fix
David Lawrence Ramsey [Sun, 7 Nov 2004 16:13:19 +0000 (16:13 +0000)]
formatting fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin the search prompt shortcut list, move "Full Justify" to after
David Lawrence Ramsey [Sun, 7 Nov 2004 16:04:18 +0000 (16:04 +0000)]
in the search prompt shortcut list, move "Full Justify" to after
"History", so that the latter is visible onscreen again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2080 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin proto.h, add missing NANO_SMALL #ifdef around the
David Lawrence Ramsey [Sun, 7 Nov 2004 15:29:40 +0000 (15:29 +0000)]
in proto.h, add missing NANO_SMALL #ifdef around the
cut_marked_segment() prototype

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2079 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment update
David Lawrence Ramsey [Sun, 7 Nov 2004 01:26:39 +0000 (01:26 +0000)]
comment update

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2078 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodon't let remove_magicline() remove the magicline if it's the only line
David Lawrence Ramsey [Sun, 7 Nov 2004 01:22:20 +0000 (01:22 +0000)]
don't let remove_magicline() remove the magicline if it's the only line
in the file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2077 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agopreemptively update the version number in the documentation
David Lawrence Ramsey [Sat, 6 Nov 2004 21:26:09 +0000 (21:26 +0000)]
preemptively update the version number in the documentation

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2076 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_uncut_text(), maintain current_y's value when uncutting blocks so
David Lawrence Ramsey [Sat, 6 Nov 2004 20:33:43 +0000 (20:33 +0000)]
in do_uncut_text(), maintain current_y's value when uncutting blocks so
that smooth scrolling works correctly; also add a few miscellaneous
cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2075 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomore int -> bool conversions
David Lawrence Ramsey [Sat, 6 Nov 2004 15:10:57 +0000 (15:10 +0000)]
more int -> bool conversions

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2074 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin both the internal and alternate spell checker, put the beginning and
David Lawrence Ramsey [Sat, 6 Nov 2004 02:37:25 +0000 (02:37 +0000)]
in both the internal and alternate spell checker, put the beginning and
the end of the mark at the beginning and the end of the spell-checked
text

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2073 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorearrange a few if blocks for consistency
David Lawrence Ramsey [Sat, 6 Nov 2004 00:18:27 +0000 (00:18 +0000)]
rearrange a few if blocks for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2072 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agooops; only work around the problem of the mark's being in the middle of
David Lawrence Ramsey [Fri, 5 Nov 2004 23:55:58 +0000 (23:55 +0000)]
oops; only work around the problem of the mark's being in the middle of
a spell checked word if the mark was on in the first place

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2071 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agowhen doing marked spell-check, properly handle the case where the mark
David Lawrence Ramsey [Fri, 5 Nov 2004 23:03:03 +0000 (23:03 +0000)]
when doing marked spell-check, properly handle the case where the mark
ends in the middle of a word and that word is spell-checked; also move
the logic to detect an upside-down mark to mark_order() instead of using
the same logic in three different places, and rename a few variables for
consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2070 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomore faq updates: add questions about selecting text in an X terminal
David Lawrence Ramsey [Fri, 5 Nov 2004 18:01:33 +0000 (18:01 +0000)]
more faq updates: add questions about selecting text in an X terminal
when mouse support is turned on and typing F13-F16 when the keyboard
only has F1-F12, plus a few other miscellaneous bits

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2069 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodocument the last update
David Lawrence Ramsey [Fri, 5 Nov 2004 17:29:43 +0000 (17:29 +0000)]
document the last update

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2068 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofixed FAQ inaccuracy: Pico compatibility mode was made the default in
David Lawrence Ramsey [Fri, 5 Nov 2004 17:09:11 +0000 (17:09 +0000)]
fixed FAQ inaccuracy: Pico compatibility mode was made the default in
nano 1.1.99pre1, not 1.2.2

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2067 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodon't change the file format when we insert another file into the
David Lawrence Ramsey [Fri, 5 Nov 2004 16:24:35 +0000 (16:24 +0000)]
don't change the file format when we insert another file into the
current one

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2066 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fixes
David Lawrence Ramsey [Fri, 5 Nov 2004 16:22:27 +0000 (16:22 +0000)]
comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2065 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix
David Lawrence Ramsey [Fri, 5 Nov 2004 16:01:04 +0000 (16:01 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2064 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix entry: "... opened the file, added all of it to the cutbuffer,
David Lawrence Ramsey [Fri, 5 Nov 2004 15:39:36 +0000 (15:39 +0000)]
fix entry: "... opened the file, added all of it to the cutbuffer,
closed the file, and uncut at the current cursor position" is clearer

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2063 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoif we're not inserting a file into a new buffer, partition the current
David Lawrence Ramsey [Fri, 5 Nov 2004 15:25:53 +0000 (15:25 +0000)]
if we're not inserting a file into a new buffer, partition the current
buffer so that it's effectively a new buffer just before inserting the
file, and only restore placewewant afterwards; this is the same behavior
we would get if we opened the file, added all of it to the cutbuffer,
uncut at the current cursor position, and closed the file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2062 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix
David Lawrence Ramsey [Fri, 5 Nov 2004 15:03:12 +0000 (15:03 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2061 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoclean up the partitioning-related if blocks
David Lawrence Ramsey [Fri, 5 Nov 2004 14:37:18 +0000 (14:37 +0000)]
clean up the partitioning-related if blocks

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2060 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove a bit of redundant code, and add a few more comment fixes
David Lawrence Ramsey [Thu, 4 Nov 2004 17:42:41 +0000 (17:42 +0000)]
remove a bit of redundant code, and add a few more comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2059 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agowhen (un)partitioning, don't save or restore fileage or filebot if
David Lawrence Ramsey [Thu, 4 Nov 2004 16:45:48 +0000 (16:45 +0000)]
when (un)partitioning, don't save or restore fileage or filebot if
they're the same as top or bot; also add a few comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2058 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoavoid potential segfaults while unpartitioning a filestruct
David Lawrence Ramsey [Thu, 4 Nov 2004 15:31:43 +0000 (15:31 +0000)]
avoid potential segfaults while unpartitioning a filestruct

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2057 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin cut.c, make marked_line a static enum instead of a static int, and
David Lawrence Ramsey [Thu, 4 Nov 2004 13:47:28 +0000 (13:47 +0000)]
in cut.c, make marked_line a static enum instead of a static int, and
add a few formatting cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2056 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix entry
David Lawrence Ramsey [Thu, 4 Nov 2004 13:40:58 +0000 (13:40 +0000)]
fix entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2055 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove the DOS_FILE and MAC_FILE flags, as they're only used in files.c,
David Lawrence Ramsey [Thu, 4 Nov 2004 04:08:18 +0000 (04:08 +0000)]
remove the DOS_FILE and MAC_FILE flags, as they're only used in files.c,
and replace them with a static file_format enum; change the
openfilestruct structure accordingly in order to handle this; also add a
few miscellaneous cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2054 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove most redundant includes of sys/stat.h; it's included in nano.h,
David Lawrence Ramsey [Thu, 4 Nov 2004 03:53:11 +0000 (03:53 +0000)]
remove most redundant includes of sys/stat.h; it's included in nano.h,
so it doesn't need to be included in files that include nano.h

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2053 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove unneeded space
David Lawrence Ramsey [Thu, 4 Nov 2004 03:27:48 +0000 (03:27 +0000)]
remove unneeded space

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2052 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin search_init(), when we're replacing and the mark is on, display a
David Lawrence Ramsey [Wed, 3 Nov 2004 23:05:11 +0000 (23:05 +0000)]
in search_init(), when we're replacing and the mark is on, display a
prompt indicating that we're replacing text only in the selection
instead of the usual prompt

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2051 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd code to partition a filestruct between a set of arbitrary
David Lawrence Ramsey [Wed, 3 Nov 2004 22:03:41 +0000 (22:03 +0000)]
add code to partition a filestruct between a set of arbitrary
coordinates; given the coordinates of the beginning and end of the mark,
this allows proper and easier handling of saving marked selections,
replacing text only in marked selections, and spell-checking marked
selections using either the internal or alternate spell checker; do all
these using a global partition structure

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2050 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fix
David Lawrence Ramsey [Wed, 3 Nov 2004 21:11:38 +0000 (21:11 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2049 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_replace_loop(), make real_current_x a const filestruct* again
David Lawrence Ramsey [Wed, 3 Nov 2004 16:02:41 +0000 (16:02 +0000)]
in do_replace_loop(), make real_current_x a const filestruct* again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2048 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Wed, 3 Nov 2004 14:58:04 +0000 (14:58 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2047 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix crash in mallocstrncpy() call
David Lawrence Ramsey [Tue, 2 Nov 2004 20:48:37 +0000 (20:48 +0000)]
fix crash in mallocstrncpy() call

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2046 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd new function mallocstrncpy()
David Lawrence Ramsey [Tue, 2 Nov 2004 15:18:30 +0000 (15:18 +0000)]
add new function mallocstrncpy()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2045 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin get_kbinput(), make sure meta_key and func_key are set properly in
David Lawrence Ramsey [Tue, 2 Nov 2004 02:48:02 +0000 (02:48 +0000)]
in get_kbinput(), make sure meta_key and func_key are set properly in
all cases

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2044 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoleave "Mark Text" and "Where Is Next" out entirely when NANO_SMALL is
David Lawrence Ramsey [Mon, 1 Nov 2004 22:54:40 +0000 (22:54 +0000)]
leave "Mark Text" and "Where Is Next" out entirely when NANO_SMALL is
defined; since they aren't in the visible main list, there's no point in
having them in but disabled; also add a few formatting fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2043 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd new key aliases: F15 for "Mark Text" and F16 for "Where Is Next";
David Lawrence Ramsey [Mon, 1 Nov 2004 22:40:02 +0000 (22:40 +0000)]
add new key aliases: F15 for "Mark Text" and F16 for "Where Is Next";
also add support for their corresponding escape sequences

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2042 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodocument the help browser display fix
David Lawrence Ramsey [Mon, 1 Nov 2004 22:37:36 +0000 (22:37 +0000)]
document the help browser display fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2041 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoproperly handle the case of a function key with no preceding control key
David Lawrence Ramsey [Mon, 1 Nov 2004 22:35:26 +0000 (22:35 +0000)]
properly handle the case of a function key with no preceding control key
in the help browser

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2040 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix
David Lawrence Ramsey [Sun, 31 Oct 2004 22:45:24 +0000 (22:45 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2039 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing attribution
David Lawrence Ramsey [Sun, 31 Oct 2004 14:40:40 +0000 (14:40 +0000)]
add missing attribution

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2038 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix problem found by Rocco: make search_last_line static to search.c
David Lawrence Ramsey [Sun, 31 Oct 2004 13:20:30 +0000 (13:20 +0000)]
fix problem found by Rocco: make search_last_line static to search.c
instead of local to findnextstr() so that search wrapping detection
works properly again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2037 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove erroneous entry
David Lawrence Ramsey [Sun, 31 Oct 2004 13:13:19 +0000 (13:13 +0000)]
remove erroneous entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2036 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake mark_beginx a size_t instead of an int
David Lawrence Ramsey [Sat, 30 Oct 2004 01:16:08 +0000 (01:16 +0000)]
make mark_beginx a size_t instead of an int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2035 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake current_x a size_t instead of an int
David Lawrence Ramsey [Sat, 30 Oct 2004 01:03:15 +0000 (01:03 +0000)]
make current_x a size_t instead of an int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2034 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Fri, 29 Oct 2004 15:48:40 +0000 (15:48 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2033 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix
David Lawrence Ramsey [Fri, 29 Oct 2004 15:42:02 +0000 (15:42 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2032 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorevert the marked replace code; it's hackish, and there appears to be no
David Lawrence Ramsey [Wed, 27 Oct 2004 02:21:01 +0000 (02:21 +0000)]
revert the marked replace code; it's hackish, and there appears to be no
easy way to make it work with the internal spell checker as is; it
should eventually be reimplemented to work at the findnextstr() level

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2031 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing blank line
David Lawrence Ramsey [Wed, 27 Oct 2004 02:15:44 +0000 (02:15 +0000)]
add missing blank line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2030 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Tue, 26 Oct 2004 21:14:56 +0000 (21:14 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2029 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_replace_loop(), add new parameter canceled, set to TRUE if we
David Lawrence Ramsey [Tue, 26 Oct 2004 20:58:30 +0000 (20:58 +0000)]
in do_replace_loop(), add new parameter canceled, set to TRUE if we
canceled at the prompt and FALSE otherwise; use it to make sure that
canceling works properly in all cases when using the internal spell
checker

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2028 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd Rocco Corsi's patch to fix a problem in do_int_spell_fix() where if
David Lawrence Ramsey [Tue, 26 Oct 2004 16:54:19 +0000 (16:54 +0000)]
add Rocco Corsi's patch to fix a problem in do_int_spell_fix() where if
the cursor is in the middle of a file, the spell checker will sometimes
only correct the misspelled word instances that appear before the cursor
position and then stop

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2027 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Tue, 26 Oct 2004 16:29:21 +0000 (16:29 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2026 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoput DB's old efficiency tweaks back in bottombars()
David Lawrence Ramsey [Mon, 25 Oct 2004 15:00:38 +0000 (15:00 +0000)]
put DB's old efficiency tweaks back in bottombars()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2025 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix: "Hurd console" -> "Mach console"
David Lawrence Ramsey [Sun, 24 Oct 2004 22:51:39 +0000 (22:51 +0000)]
cosmetic fix: "Hurd console" -> "Mach console"

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2024 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove the global DOS/Mac format toggles, for consistency with other
David Lawrence Ramsey [Sun, 24 Oct 2004 17:20:31 +0000 (17:20 +0000)]
remove the global DOS/Mac format toggles, for consistency with other
file operations like Append/Prepend that are specific to the "Write
File" prompt, and change the Mac format toggle to Meta-M, since that no
longer conflicts with the mouse support toggle; update the documentation
accordingly

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2023 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin nano.1 and nano.texi, eliminate references to the now removed
David Lawrence Ramsey [Sun, 24 Oct 2004 16:47:54 +0000 (16:47 +0000)]
in nano.1 and nano.texi, eliminate references to the now removed
-D/--dos and -M/--mac command line options

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2022 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Sun, 24 Oct 2004 16:45:40 +0000 (16:45 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2021 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix for the ^^ help entry
David Lawrence Ramsey [Sun, 24 Oct 2004 16:18:17 +0000 (16:18 +0000)]
consistency fix for the ^^ help entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2020 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing parentheses
David Lawrence Ramsey [Sat, 23 Oct 2004 14:59:32 +0000 (14:59 +0000)]
add missing parentheses

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2019 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix for the ^I help entry
David Lawrence Ramsey [Sat, 23 Oct 2004 14:53:07 +0000 (14:53 +0000)]
consistency fix for the ^I help entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2018 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agosimplify the key-interpreting logic in get_shortcut()
David Lawrence Ramsey [Sat, 23 Oct 2004 13:50:57 +0000 (13:50 +0000)]
simplify the key-interpreting logic in get_shortcut()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2017 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix wrong word
David Lawrence Ramsey [Sat, 23 Oct 2004 02:48:13 +0000 (02:48 +0000)]
fix wrong word

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2016 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd UTF-8 support to unget_kbinput(), and fix a minor memory leak in the
David Lawrence Ramsey [Sat, 23 Oct 2004 02:47:39 +0000 (02:47 +0000)]
add UTF-8 support to unget_kbinput(), and fix a minor memory leak in the
UTF-8 support code in get_kbinput()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2015 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin main(), tweak the command line parsing routine so that multiple +LINE
David Lawrence Ramsey [Fri, 22 Oct 2004 20:25:56 +0000 (20:25 +0000)]
in main(), tweak the command line parsing routine so that multiple +LINE
flags are properly interpreted in multibuffer mode

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2014 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fix
David Lawrence Ramsey [Fri, 22 Oct 2004 16:11:55 +0000 (16:11 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2013 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoapply patch from DB: in write_file(), if we've tried to write to an
David Lawrence Ramsey [Fri, 22 Oct 2004 03:33:54 +0000 (03:33 +0000)]
apply patch from DB: in write_file(), if we've tried to write to an
unwritable file and we're not prepending, tempname is NULL when it's
passed to unlink(); this can cause problems if unlink() can't handle
NULL, so don't call it in that case

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2012 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoanother indentation fix
David Lawrence Ramsey [Fri, 22 Oct 2004 03:30:39 +0000 (03:30 +0000)]
another indentation fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2011 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove more unneeded casts, and add an indentation fix
David Lawrence Ramsey [Thu, 21 Oct 2004 22:49:51 +0000 (22:49 +0000)]
remove more unneeded casts, and add an indentation fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2010 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove unnecessary casts
David Lawrence Ramsey [Thu, 21 Oct 2004 22:06:40 +0000 (22:06 +0000)]
remove unnecessary casts

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin nanorc.sample, change the included speller value to "aspell -x -c";
David Lawrence Ramsey [Thu, 21 Oct 2004 17:11:40 +0000 (17:11 +0000)]
in nanorc.sample, change the included speller value to "aspell -x -c";
the -x option makes aspell not create backup files, and this is
consistent with the internal spell checker's behavior

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2008 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_replace_loop(), check for more than one wrap at the right place
David Lawrence Ramsey [Thu, 21 Oct 2004 16:51:45 +0000 (16:51 +0000)]
in do_replace_loop(), check for more than one wrap at the right place

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2007 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agowhen saving or changing file positions, be sure not to ignore
David Lawrence Ramsey [Thu, 21 Oct 2004 16:25:44 +0000 (16:25 +0000)]
when saving or changing file positions, be sure not to ignore
placewewant; also move a misplaced changelog entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2006 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodo the check for being outside the mark after the zero-length regexes
David Lawrence Ramsey [Thu, 21 Oct 2004 15:44:36 +0000 (15:44 +0000)]
do the check for being outside the mark after the zero-length regexes
check, so that zero-length regex replaces work properly again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2005 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix infinite loop when we're doing a replace of marked text and the only
David Lawrence Ramsey [Thu, 21 Oct 2004 15:32:11 +0000 (15:32 +0000)]
fix infinite loop when we're doing a replace of marked text and the only
matches found are outside the marked text

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2004 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoyet more search code cleanups
David Lawrence Ramsey [Tue, 19 Oct 2004 21:09:37 +0000 (21:09 +0000)]
yet more search code cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2003 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix findnextstr() so wholewords works properly with regular expressions
David Lawrence Ramsey [Mon, 18 Oct 2004 22:19:22 +0000 (22:19 +0000)]
fix findnextstr() so wholewords works properly with regular expressions
and in conjunction with no_sameline, and add a few other minor cosmetic
fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2002 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd glib-2.0.m4 from glib 2.4.7 to the m4 directory; this is needed to
David Lawrence Ramsey [Mon, 18 Oct 2004 19:28:10 +0000 (19:28 +0000)]
add glib-2.0.m4 from glib 2.4.7 to the m4 directory; this is needed to
detect glib 2.x on systems that may not have it installed

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorely on glib 2.x only if the system doesn't have v?snprintf(), and
David Lawrence Ramsey [Mon, 18 Oct 2004 14:13:28 +0000 (14:13 +0000)]
rely on glib 2.x only if the system doesn't have v?snprintf(), and
update README.CVS accordingly

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2000 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing line
David Lawrence Ramsey [Mon, 18 Oct 2004 02:17:18 +0000 (02:17 +0000)]
add missing line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1999 35c25a1d-7b9e-4130-9fde-d3aeb78583b8