]>
git.wh0rd.org Git - nano.git/log
David Lawrence Ramsey [Tue, 5 Oct 2004 02:29:52 +0000 (02:29 +0000)]
make resetstatuspos static to just statusq()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1966
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 4 Oct 2004 22:37:56 +0000 (22:37 +0000)]
add parameter use_answer to search_init(); when it's TRUE, only set
backupstring to answer, so that we can preserve the text of the
statusbar when switching to the search prompt from the "Go To Line"
prompt; also, set backupstring before doing anything else, add one minor
efficiency tweak, and preserve the text of the statusbar no matter what
when switching from the search prompt to the "Go To Line" prompt, since
the toggling works both ways now and non-numeric text shouldn't be lost
when going only one of those ways
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1965
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 4 Oct 2004 22:35:43 +0000 (22:35 +0000)]
comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1964
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 4 Oct 2004 16:01:37 +0000 (16:01 +0000)]
remove redundancy erroneously introduced when adding the ^T toggle to
the "Go To Line" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1963
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 4 Oct 2004 15:53:40 +0000 (15:53 +0000)]
add another cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1962
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 4 Oct 2004 15:23:47 +0000 (15:23 +0000)]
add minor cosmetic fixes, and do another int -> bool conversion
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1961
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 3 Oct 2004 19:26:13 +0000 (19:26 +0000)]
remove stray dash
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1960
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 3 Oct 2004 19:18:48 +0000 (19:18 +0000)]
in open_(prev|next)_file(), translate the "New Buffer" string when
displaying "Switched to" messages on the statusbar; also do a few more
int -> bool conversions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1959
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 3 Oct 2004 13:47:26 +0000 (13:47 +0000)]
after reading in a file and detecting the format it's in, set the file
format flags (DOS_FILE and MAC_FILE) to match, and preserve them across
multiple file buffers
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1958
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 1 Oct 2004 21:37:36 +0000 (21:37 +0000)]
consistency fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1957
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 1 Oct 2004 18:47:17 +0000 (18:47 +0000)]
add missing blank line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1956
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 1 Oct 2004 18:34:30 +0000 (18:34 +0000)]
for consistency, make do_insertfile() take a parameter to indicate
whether it's in "Execute Command" mode; also add continue and goto to
the "c-file" regexes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1955
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 30 Sep 2004 22:07:21 +0000 (22:07 +0000)]
add a bunch of key-related fixes: put Meta-( (Meta-9), Meta-) (Meta-0),
and Meta-J back in the shortcut list since Meta-G is used in the file
browser and not as a toggle, tweak nanogetstr() and statusq() so that
resetstatuspos can be reduced to a static bool, change the names of some
keys to be more consistent, and add the ^R^X^X and ^W^T^T shortcuts
(note that the latter doesn't preserve the contents of the statusbar yet
when ^T is pressed at the "Go To Line" prompt), and add a few other
miscellaneous tweaks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1954
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 22:21:46 +0000 (22:21 +0000)]
fix #ifdef breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1953
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 22:14:58 +0000 (22:14 +0000)]
add a multibuffer mode toggle to the "Execute Command" prompt, for
consistency with the "Read File" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1952
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 20:50:50 +0000 (20:50 +0000)]
simplify do_insertfile() by reusing variables where possible
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1951
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 20:37:03 +0000 (20:37 +0000)]
more int -> bool conversions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1950
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 16:51:08 +0000 (16:51 +0000)]
consistency fix: the convention for shortcuts lists other than the main
list is apparently to only allow meta shortcuts as toggles, so only
allow the meta shortcuts for searching for the beginning and end of the
paragraph and justifying the entire file to go in the main list
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1949
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 16:03:03 +0000 (16:03 +0000)]
cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1948
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 15:58:56 +0000 (15:58 +0000)]
resetstatuspos should be a bool, not an int
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1947
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 15:17:47 +0000 (15:17 +0000)]
in shortcut_init(), change an erroneous _() around the "New Buffer"
string to N_()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1946
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 28 Sep 2004 15:06:15 +0000 (15:06 +0000)]
for consistency, at the "Go To Line" prompt, display "Cancelled" instead
of "Aborted" if we cancel
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1945
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 27 Sep 2004 01:10:48 +0000 (01:10 +0000)]
add missing func_key reference
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1944
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 27 Sep 2004 01:04:50 +0000 (01:04 +0000)]
add a func_key flag to the low-level input functions and the currently
existing high-level input functions, to indicate extended keypad values
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1943
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 25 Sep 2004 00:45:07 +0000 (00:45 +0000)]
refresh the screen when Ctrl-L is pressed at the statusbar prompt, as
Pico does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1942
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 24 Sep 2004 21:48:40 +0000 (21:48 +0000)]
cosmetic comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1941
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 23 Sep 2004 21:52:58 +0000 (21:52 +0000)]
remove redundant include of limits.h from nano.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1940
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 22 Sep 2004 22:45:08 +0000 (22:45 +0000)]
turn off extended input processing (the IEXTEN termios flag) as nano
1.2.x does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1939
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 18 Sep 2004 22:02:21 +0000 (22:02 +0000)]
make some ints that use the value of fill and can be greater than COLS
ssize_t's for consistency, and add a few minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1938
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 12 Sep 2004 22:01:38 +0000 (22:01 +0000)]
revert the blocking of meta sequences in main(), as it doesn't solve the
problem of meta sequences' sometimes being interpreted as printable
characters when they shouldn't be
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1937
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 12 Sep 2004 21:40:04 +0000 (21:40 +0000)]
document keeping meta sequences from getting through to do_char() in the
changelog, and update a related comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1936
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 12 Sep 2004 21:30:36 +0000 (21:30 +0000)]
don't let meta sequences get through to do_char()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1935
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 11 Sep 2004 21:41:13 +0000 (21:41 +0000)]
make the help menu shortcut display more flexible, add more intuitive
aliases for moving to the beginning and end of a paragraph and
justifying the entire file, and make those aliases available in the main
shortcut list too, since Pico's practice of putting them in the search
menu is rather odd
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1934
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 11 Sep 2004 21:28:36 +0000 (21:28 +0000)]
for more compatibility with Pico, remove extra space after a character
in punct if that character is the same as the one before it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1933
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Fri, 10 Sep 2004 22:18:53 +0000 (22:18 +0000)]
Updated manpages by Jean-Philippe.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1932
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 7 Sep 2004 21:51:49 +0000 (21:51 +0000)]
make get_edit_input() respect view mode, and clarify its changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1931
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 7 Sep 2004 15:45:14 +0000 (15:45 +0000)]
minor cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1930
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 7 Sep 2004 00:48:49 +0000 (00:48 +0000)]
when calling AC_TRY_RUN() to test for a broken regexec() function, set
the fourth parameter to default to "no" (since it apparently only occurs
on glibc 2.2.3-based systems) so that cross-compiling will work
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1929
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 5 Sep 2004 21:40:31 +0000 (21:40 +0000)]
add DB's overhaul of the file loading code to increase efficiency,
remove ugly workarounds for most cases of edittop's or current's being
NULL (as those cases no longer occur due to the overhaul), and remove
detection of binary files (since it wasn't always accurate and will only
cause problems when UTF-8 support is added); also add a few minor fixes
of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1928
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 1 Sep 2004 22:08:57 +0000 (22:08 +0000)]
remove reference to @includedir@ in src/Makefile.am, as it's unneeded
and can break cross-compilation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1927
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 31 Aug 2004 18:26:28 +0000 (18:26 +0000)]
Updated French manpages from Jean-Philippe.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1926
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 31 Aug 2004 18:13:07 +0000 (18:13 +0000)]
Update Spanish translation from Javi.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1925
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 31 Aug 2004 00:23:16 +0000 (00:23 +0000)]
Updated translations.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1924
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 31 Aug 2004 00:22:02 +0000 (00:22 +0000)]
Updated French translation by Jean-Philippe Guérard.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1923
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 29 Aug 2004 14:42:03 +0000 (14:42 +0000)]
in nanorc.sample, remove specific references to control key shortcuts
other than XON and XOFF
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1922
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 28 Aug 2004 16:34:28 +0000 (16:34 +0000)]
remove snippet of edit_update() that's redundant now that findnextstr()
maintains current_y properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1921
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 28 Aug 2004 15:51:07 +0000 (15:51 +0000)]
work around the need to put back the first non-escape character when
reading an escape sequence
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1920
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 27 Aug 2004 21:02:38 +0000 (21:02 +0000)]
in do_insertfile(), readd the NANO_SMALL #ifdef around the start_again:
label to avoid a warning
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1919
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 27 Aug 2004 20:28:34 +0000 (20:28 +0000)]
do more int ->bool conversions, change the order of the parameters in
findnextstr(), and make findnextstr() maintain the value of current_y
too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1918
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 27 Aug 2004 17:02:05 +0000 (17:02 +0000)]
have edit_refresh() call edit_update() with NONE when smooth scrolling
is on so that smooth scrolling applies everywhere instead of just to the
movement functions, fix a potential infinite loop when edit_update() is
called with NONE and current_y is greater than (editwinrows - 1), and
have do_para_begin() and do_para_end() maintain current_y as
do_justify() does (and as they did before)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1917
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Fri, 27 Aug 2004 10:18:47 +0000 (10:18 +0000)]
Updated Catalan and German.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1916
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 26 Aug 2004 18:07:58 +0000 (18:07 +0000)]
simplify edit_update() so as not to require the fileptr parameter
anymore, since it's set to current in all calls
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1915
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 26 Aug 2004 04:22:54 +0000 (04:22 +0000)]
do another int -> bool conversion, and simplify the search/replace
"Cancelled" messages
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1914
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 26 Aug 2004 01:43:16 +0000 (01:43 +0000)]
in get_mouseinput(), make clicking on meta shortcuts work properly
again, and properly handle the case of whereis_list's being longer than
MAIN_VISIBLE as bottombars() does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1913
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 26 Aug 2004 01:29:25 +0000 (01:29 +0000)]
remove redundant #ifdef
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1912
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 25 Aug 2004 16:37:06 +0000 (16:37 +0000)]
add unget_kbinput(), a wrapper for ungetch()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1911
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 25 Aug 2004 15:39:10 +0000 (15:39 +0000)]
convert ints to bools in the low-level input routines, and consolidate
the high-level input routines for the edit window
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1910
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 18 Aug 2004 16:14:18 +0000 (16:14 +0000)]
add missing brackets around an if statement block in parse_rcfile() so
that parsing the numeric argument after "tabsize" works properly again
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1909
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 20:44:31 +0000 (20:44 +0000)]
Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1908
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 20:38:44 +0000 (20:38 +0000)]
GNU nano 1.3.4
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1906
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 20:34:57 +0000 (20:34 +0000)]
add missing #ifdefs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1905
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 19:28:54 +0000 (19:28 +0000)]
and add last missing bit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1904
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 19:20:05 +0000 (19:20 +0000)]
fix the last ngetdelim() tweak
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1903
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 16:04:48 +0000 (16:04 +0000)]
better document the ngetdelim() tweaks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1902
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 16:00:29 +0000 (16:00 +0000)]
add a few last tweaks to ngetdelim()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1901
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 17 Aug 2004 05:23:38 +0000 (05:23 +0000)]
per DB's patch, overhaul the rcfile and history file reading and writing
routines to fix a few fundamental problems and limitations; also add
getline() and getdelim() equivalents adapted from GNU mailutils 0.5 (and
tweaked to better integrate with nano), since the patch uses getline()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1900
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 21:43:00 +0000 (21:43 +0000)]
a few more #ifdef tweaks, plus a few cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1899
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 20:06:20 +0000 (20:06 +0000)]
more #ifdef tweaks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1898
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 19:48:21 +0000 (19:48 +0000)]
tweak some #ifdefs to avoid warnings when compiling with
--disable-wrapping, --disable-justify, or a combination of the two
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1897
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 15:20:14 +0000 (15:20 +0000)]
per DB's patch, show the "Press Return To Continue" prompt if we can't
read the .nano_history file while starting nano
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1896
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 04:34:00 +0000 (04:34 +0000)]
make sure that the shortcut list properly displays "Close" when reading
in multiple files on the command line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1895
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 04:30:22 +0000 (04:30 +0000)]
and do int -> bool conversions for the prototypes too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1894
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 03:27:54 +0000 (03:27 +0000)]
add more int -> bool conversions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1893
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 02:52:14 +0000 (02:52 +0000)]
add missing error message simplifications from before
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1892
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 12 Aug 2004 02:11:35 +0000 (02:11 +0000)]
indentation fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1891
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 11 Aug 2004 05:13:08 +0000 (05:13 +0000)]
add a bunch of DB's miscellaneous fixes, plus a few of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1890
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 10 Aug 2004 23:05:59 +0000 (23:05 +0000)]
per DB's patch, simplify the saving of emergency files in die(),
die_save_file(), and get_next_filename()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1889
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 7 Aug 2004 22:33:14 +0000 (22:33 +0000)]
add titlebar() calls before all open_file() calls and remove the
titlebar() call after them, so that the titlebar is displayed properly
for all file(s) loaded; also add missing int -> bool conversion
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1888
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 7 Aug 2004 22:00:02 +0000 (22:00 +0000)]
cosmetic fixes for the getopt_(long)?() calls and the switch block
dealing with the command line options
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1887
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 7 Aug 2004 21:27:37 +0000 (21:27 +0000)]
per DB's patch, convert a few parts of files.c to use bool so that
open_pipe()'s failure is handled properly again, and add various
#ifdefs to fix a few warnings and compilation problems that occur when
everything is enabled manually including NANO_SMALL
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1886
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 5 Aug 2004 22:10:22 +0000 (22:10 +0000)]
per DB's patch, convert nano.c to use bools wherever needed, add a few
efficiency tweaks, and fix a few minor bugs in help_init() where "Up"
and "Space" might not be displayed properly and the help browser
wouldn't work if fewer than 24 columns were available
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1885
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 5 Aug 2004 21:57:48 +0000 (21:57 +0000)]
document DB's warning fixes when ENABLE_NLS is undefined and the
-fwritable-strings option is used, which were part of his last patch to
convert more translated strings to use N_()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1884
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 5 Aug 2004 15:45:09 +0000 (15:45 +0000)]
per DB's patch, convert more of nano to use N_() when possible; also add
a few more minor cosmetic fixes of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1883
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 5 Aug 2004 15:16:19 +0000 (15:16 +0000)]
per DB's patch, don't translate the option strings for -Z/--restricted;
also add a few more minor cosmetic fixes of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1882
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 4 Aug 2004 18:24:53 +0000 (18:24 +0000)]
tweak parse_num() to return a bool, and fix backwards test of its value
so that numeric values will be preserved when switching to the "Go To
Line" prompt again
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1881
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 1 Aug 2004 22:35:31 +0000 (22:35 +0000)]
make lastwastab and list use TRUE and FALSE instead of 1 and 0, make
them bools in the process, and make a few other minor cosmetic cleanups
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1880
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 1 Aug 2004 22:00:29 +0000 (22:00 +0000)]
tweak the spec file to properly package the "rnano" symlink
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1879
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 1 Aug 2004 16:09:15 +0000 (16:09 +0000)]
automatically install a symlink "rnano" pointing to nano
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1878
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 31 Jul 2004 14:10:23 +0000 (14:10 +0000)]
add DB's fix for a problem where quoted justify wouldn't work if
HAVE_REGEX_H wasn't set, and don't treat the return values of the string
comparison functions as boolean anymore
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1877
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Jul 2004 22:52:44 +0000 (22:52 +0000)]
rcfile tweaks: prompt only once for all rcfile errors instead of once
for each separate error, make sure all the messages end in newlines,
etc.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1876
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Jul 2004 20:21:34 +0000 (20:21 +0000)]
add my display tweak to do_replace(), my efficiency tweaks to
do_gotoline(), and DB's efficiency tweaks to do_gotopos()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1875
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Jul 2004 17:30:17 +0000 (17:30 +0000)]
add a consistency fix for do_enter() and a few minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1874
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Jul 2004 03:54:34 +0000 (03:54 +0000)]
add DB's overhaul of the paragraph searching code and some of the
justify code, as it makes some code much more understandable and fixes a
bug where searching for the previous paragraph would move the cursor too
high in one case
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1873
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 29 Jul 2004 14:32:17 +0000 (14:32 +0000)]
in do_replace_loop(), make sure old_pww is updated to the current value
of placewewant when a new match is found, so that edit_redraw() will
redraw the screen properly when only placewewant changes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1872
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 28 Jul 2004 20:53:55 +0000 (20:53 +0000)]
add a few missing placewewant size_t conversions
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1871
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 28 Jul 2004 20:46:25 +0000 (20:46 +0000)]
per DB's patch, convert placewewant to a size_t; also add a few
miscellaneous fixes of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1870
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 28 Jul 2004 13:50:43 +0000 (13:50 +0000)]
add various improvements to the "c-file" regexes by Mike Frysinger, with
a few additions of mine
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1869
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 28 Jul 2004 13:03:06 +0000 (13:03 +0000)]
add Mike Frysinger's sample regexes for patch files
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1868
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 27 Jul 2004 19:40:39 +0000 (19:40 +0000)]
minor cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1867
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 27 Jul 2004 16:46:35 +0000 (16:46 +0000)]
move the main terminal initialization functions, aside from initscr(),
into a new terminal_init() function, and convert nano to use it; also,
when reloading the newly spell-checked temporary file in
do_alt_speller(), call terminal_init() to make sure that all the
original terminal settings are restored, as a curses-based alternative
spell checker (e.g. aspell) can change them
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1866
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8