]>
git.wh0rd.org Git - nano.git/log
David Lawrence Ramsey [Sun, 27 Jun 2004 00:54:08 +0000 (00:54 +0000)]
refactor the code to search for the beginning of a paragraph a bit to
fix some inaccuracies and eliminate the need for recursion; it now uses
almost the same logic as the code to search for the end of a paragraph,
which makes it somewhat easier to understand
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1823
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 26 Jun 2004 15:24:16 +0000 (15:24 +0000)]
a few last minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1822
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Fri, 25 Jun 2004 22:43:09 +0000 (22:43 +0000)]
Add a translation comment so translators use both their shortcuts as well as the English ones.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1818
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Fri, 25 Jun 2004 22:34:18 +0000 (22:34 +0000)]
Fix XSI:ism in config.rpath.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1817
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 25 Jun 2004 01:52:10 +0000 (01:52 +0000)]
call justify_format() just after backup_lines() instead of inside it, so
that full justification doesn't erroneously justify non-paragraph lines
in the file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1815
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 24 Jun 2004 22:39:24 +0000 (22:39 +0000)]
minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1814
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 22 Jun 2004 15:38:47 +0000 (15:38 +0000)]
make the former flag same_line_wrap use TRUE and FALSE, add missing part
of DB's do_wrap() tweaks (the initialization of new_line_wrap to 0), and
wrap a few overly long comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1813
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 22 Jun 2004 14:30:18 +0000 (14:30 +0000)]
add minor comment fixes, and also fix a problem where the escape
sequence for F3 on the FreeBSD console wasn't interpreted properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1812
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 15 Jun 2004 01:48:51 +0000 (01:48 +0000)]
fix inaccurate comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1810
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 12 Jun 2004 21:20:33 +0000 (21:20 +0000)]
do_yesno() comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1809
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 12 Jun 2004 21:03:14 +0000 (21:03 +0000)]
clean up main() a bit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1808
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 12 Jun 2004 02:10:07 +0000 (02:10 +0000)]
fix slightly misplaced break
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1807
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 10 Jun 2004 01:35:02 +0000 (01:35 +0000)]
remove unneeded justify_format() call from do_justify() which caused
problems if the original paragraph was one line long and ended with a
tab or tabs; unjustification would restore the justify_format()ted line
instead of the original line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1806
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 9 Jun 2004 08:36:46 +0000 (08:36 +0000)]
per CHAO Wei-Lun's patch, add missing "[dir]" and missing _()'s to the
"-E [dir]/--backupdir=[dir]" strings in usage()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1805
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 5 Jun 2004 22:09:56 +0000 (22:09 +0000)]
justification fix: if the last line of a justified paragraph has a space
on the end of it, the space should be removed
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1804
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 4 Jun 2004 22:36:42 +0000 (22:36 +0000)]
document the functions that were removed when the input routines were
converted to use state machines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1803
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 4 Jun 2004 22:28:55 +0000 (22:28 +0000)]
add an extra break and move an #endif down to fix a potential problem
when NANO_SMALL is defined or KEY_RESIZE isn't, and when PDCURSES isn't
defined
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1802
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 4 Jun 2004 18:18:17 +0000 (18:18 +0000)]
properly handle it when get_escape_seq_kbinput() returns ERR for an
escape sequence that is recognized but which should be ignored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1801
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 3 Jun 2004 20:26:12 +0000 (20:26 +0000)]
support KEY_A1, KEY_A3, KEY_C1, and KEY_C3 on the numeric keypad
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1800
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 1 Jun 2004 22:56:34 +0000 (22:56 +0000)]
document the use of the SPELL environment variable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1799
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 1 Jun 2004 20:38:00 +0000 (20:38 +0000)]
don't rely on the return value of curs_set(), as it's broken on e.g.
slang; instead, explicitly turn the cursor off where we need to
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1798
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 1 Jun 2004 19:49:38 +0000 (19:49 +0000)]
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1797
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 1 Jun 2004 18:32:36 +0000 (18:32 +0000)]
edit_redraw() should update when we're not on the first page and/or when
we're not on the same page as before, not just in the former case
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1796
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 1 Jun 2004 15:29:31 +0000 (15:29 +0000)]
Update docs about Chinese contributor.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1795
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
Jordi Mallach [Tue, 1 Jun 2004 15:13:19 +0000 (15:13 +0000)]
2004-06-01 Jordi Mallach <jordi@gnu.org>
* zh_TW.po: Added Chinese (Taiwan) translation by
CHAO Wei-Lun <chaoweilun@pcmail.com.tw>.
* LINGUAS: Added "zh_TW".
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1794
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 31 May 2004 14:58:59 +0000 (14:58 +0000)]
add DB's tweaks to do_wrap(), plus a few minor bits of mine (convert
some ints to size_t's and convert the int wrapping to use TRUE and FALSE
since it's used as a boolean)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1793
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 31 May 2004 14:47:12 +0000 (14:47 +0000)]
fix comment inaccuracies
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1792
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 30 May 2004 04:19:27 +0000 (04:19 +0000)]
oops; for consistency with e.g. color syntax highlighting (which, like
whitespace display, is specified in the rcfile), whitespace display
should be on by default
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1791
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 30 May 2004 03:56:52 +0000 (03:56 +0000)]
for consistency, whitespace display should be off by default, not on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1790
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 30 May 2004 03:23:39 +0000 (03:23 +0000)]
add spaces to the ends of the "Overwrite" and "Different Name" prompts,
for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1789
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 30 May 2004 03:19:52 +0000 (03:19 +0000)]
edit_redraw() fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1788
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 20:38:08 +0000 (20:38 +0000)]
add DB's changes to allow scrolling through the help browser text with
the arrow keys as well as the paging keys
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1787
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 17:20:01 +0000 (17:20 +0000)]
document cosmetic reorganization of rcfile.c, and readd an "else" I
accidentally removed while doing it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1786
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 17:05:52 +0000 (17:05 +0000)]
add a few comment fixes and an explicit check in rcfile.c for
rcopts[i].name's being "tabsize" (to avoid a spurious error under some
circumstances about tabsize's being 0 when there's no tabsize entry in
the rcfile)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1785
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 16:47:52 +0000 (16:47 +0000)]
a few last cosmetic reorderings and fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1784
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 16:38:57 +0000 (16:38 +0000)]
allow the changing of closing punctuation and closing brackets (used in
justification) via the rcfile
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1783
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 16:25:30 +0000 (16:25 +0000)]
add Mike Frysinger's patch (with minor modifications) to allow
displaying other characters, specified in the rcfile, for the first
characters of tabs and spaces
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1782
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 15:36:58 +0000 (15:36 +0000)]
since KEEP_CUTBUFFER is only used in cut.c, make it a static variable in
cut.c instead of a flag, and unset it in other files via the new
function cutbuffer_reset()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1781
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 14:13:02 +0000 (14:13 +0000)]
fix minor omission: the smarthome option was documented in nanorc.5 as
well as nano.1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1780
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 03:03:52 +0000 (03:03 +0000)]
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1779
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 29 May 2004 01:20:17 +0000 (01:20 +0000)]
add some comments better explaining what is disabled in restricted mode
and why
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1778
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 23:45:25 +0000 (23:45 +0000)]
don't bother initializing the backup directory or reading $SPELL for the
alternative spell checker if we're in restricted mode, since both
backups and spell checking are disabled then
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1777
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 22:42:41 +0000 (22:42 +0000)]
check $SPELL for an alternative spell checker if we didn't get one from
the command line and/or rcfile, as Pico does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1776
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 21:02:32 +0000 (21:02 +0000)]
add missing cast to char
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1775
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 20:44:09 +0000 (20:44 +0000)]
overhaul the routines for movement and related things to eliminate
unneeded screen redraws
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1774
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 17:23:33 +0000 (17:23 +0000)]
refactor the low-level input routines into main routines that get the
input and state machines that interpret the input
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1773
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 15:05:56 +0000 (15:05 +0000)]
add code to statusq() to *really* not allow "Full Justify" while in view
mode
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1772
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 14:42:50 +0000 (14:42 +0000)]
fix problems caused by cut and paste of the do_para_end() shortcut for
the do_full_justify() shortcut: don't allow the latter to work in view
mode, and have it display its own message instead of the do_para_end()
shortcut's message
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1771
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 28 May 2004 00:15:28 +0000 (00:15 +0000)]
make write_marked() always call write_file() with nonamechange set to
TRUE (and hence no longer take a namechange parameter itself) to fix a
bug where writing a selection would change the current filename, and
make die_save_file() do the same since we don't need to change the
current filename if we're writing emergency backup files
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1770
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 27 May 2004 20:09:52 +0000 (20:09 +0000)]
add DB's tweaks to do_enter() and remove the now-unused center_cursor()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1769
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 27 May 2004 18:39:16 +0000 (18:39 +0000)]
treat search_last_line as a boolean everywhere, and remove some unneeded
trailing spaces
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1768
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 25 May 2004 23:34:43 +0000 (23:34 +0000)]
properly account for padding in titlebar()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1767
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 25 May 2004 19:41:11 +0000 (19:41 +0000)]
per DB's patch, make finish() accept and return void, since none of the
calls to finish() set sigage to anything other than 0 or use its return
value
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1766
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 25 May 2004 02:33:27 +0000 (02:33 +0000)]
cosmetic fix: reorder enums
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1765
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 25 May 2004 01:49:58 +0000 (01:49 +0000)]
per DB's patch, also remove the now-unused center_cursor()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1764
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 19:47:08 +0000 (19:47 +0000)]
per DB's patch, remove the now-unused edit_refresh_clearok()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1763
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 18:40:41 +0000 (18:40 +0000)]
comment fixes for consistency: "Meta" -> "meta"
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1762
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 05:52:35 +0000 (05:52 +0000)]
convert do_para_search() to use an enum to specify its search type
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1761
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 05:05:07 +0000 (05:05 +0000)]
comment fix for consistency: "magic line" -> "magicline"
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1760
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 02:58:05 +0000 (02:58 +0000)]
comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1759
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 24 May 2004 02:35:02 +0000 (02:35 +0000)]
switch test around in do_prev_word() for consistency with do_next_word()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1758
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 23 May 2004 21:33:23 +0000 (21:33 +0000)]
move do_(first|last)_line() to move.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1757
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 23 May 2004 21:23:23 +0000 (21:23 +0000)]
comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1756
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 23 May 2004 21:17:56 +0000 (21:17 +0000)]
add missing bit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1755
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sun, 23 May 2004 21:11:14 +0000 (21:11 +0000)]
add DB's changes to titlebar() (with a few tweaks of mine) to make it
handle shorter screen widths better and display the filename using
display_string(), my strnlen() equivalent so the new titlebar() will
work on systems without strnlen(), and a few of DB's other minor changes
to make other display-related functions handle shorter screen widths
better, among other things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1754
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 22 May 2004 20:38:33 +0000 (20:38 +0000)]
cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1753
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 22 May 2004 20:19:15 +0000 (20:19 +0000)]
add missing #ifdefs around prototypes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1752
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 22 May 2004 20:15:20 +0000 (20:15 +0000)]
add smart home key
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1751
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 20 May 2004 14:31:15 +0000 (14:31 +0000)]
comment fix: justify_format() could have just left out a space at the
end of the line instead of removing it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1750
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 20 May 2004 03:29:33 +0000 (03:29 +0000)]
comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1749
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 19 May 2004 16:04:27 +0000 (16:04 +0000)]
go back to cbreak mode and disable_signals() instead of raw mode, as
disable_signals() doesn't take up much space and we need one fewer slang
workaround that way
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1748
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 19 May 2004 15:41:17 +0000 (15:41 +0000)]
comment fix: ^J should be Ctrl-J
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1747
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 18 May 2004 15:23:31 +0000 (15:23 +0000)]
add missing bit from DB's refactoring of do_credits(): translate the
messages in xlcredits[] after they're initialized in order to avoid an
error when compiling with -pedantic
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1746
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 18 May 2004 01:20:36 +0000 (01:20 +0000)]
minor overhaul of terminal-related things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1745
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 17 May 2004 20:38:00 +0000 (20:38 +0000)]
and remove unneccessary initialization
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1744
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 17 May 2004 20:32:51 +0000 (20:32 +0000)]
tweak justification so that it works the same way as the current version
of Pico does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1743
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Mon, 17 May 2004 16:11:18 +0000 (16:11 +0000)]
remove some unneeded edit_update()s in do_para_search() and do_justify()
per DB's patch, and simplify an if statement in do_justify()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1742
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 14 May 2004 17:57:00 +0000 (17:57 +0000)]
if multibuffer support is compiled in, properly read in multiple files
at the command line even if multibuffer mode isn't turned on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1740
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 14 May 2004 17:39:19 +0000 (17:39 +0000)]
in main(), don't open the first file in quiet mode, since if we do, an
error message won't be shown if it's unreadable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1739
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 14 May 2004 03:50:49 +0000 (03:50 +0000)]
one last comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1738
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 14 May 2004 01:17:25 +0000 (01:17 +0000)]
the last of the minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1737
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 23:19:01 +0000 (23:19 +0000)]
comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1736
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 23:05:14 +0000 (23:05 +0000)]
one last minor cosmetic change
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1735
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 22:23:58 +0000 (22:23 +0000)]
minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1734
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 18:04:31 +0000 (18:04 +0000)]
minor cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1733
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 17:46:57 +0000 (17:46 +0000)]
reformat the test programs in configure.ac to be on multiple lines for
greater readability, and remove unnecessary inclusion of stdio.h in the
slang tests
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1732
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 17:28:03 +0000 (17:28 +0000)]
add support for Pico's ability to justify the entire file at once ("full
justify", accessible via ^W^J)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1731
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 13 May 2004 17:19:54 +0000 (17:19 +0000)]
add isblank() equivalent and use it instead of checking for (tab or
space) all over the code, properly detect whether we have strcasestr()
and only use nstristr() if we don't, and bump up CVS build requirements
to account for setting _GNU_SOURCE when running the test programs for
both
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1730
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 8 May 2004 00:06:15 +0000 (00:06 +0000)]
nanorc.sample updates: add missing mouse entry, and add backupdir and
mouse entries to the nanorc sample regexes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1729
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 7 May 2004 18:00:20 +0000 (18:00 +0000)]
fix more info page inaccuracies
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1728
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 5 May 2004 21:36:50 +0000 (21:36 +0000)]
disable "Where Is Next" in tiny mode
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1727
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 1 May 2004 04:13:06 +0000 (04:13 +0000)]
fix minor inconsistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1726
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 1 May 2004 01:21:38 +0000 (01:21 +0000)]
clarifications to comments explaining exactly what control characters
and escape sequences are supported
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1725
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Apr 2004 19:40:03 +0000 (19:40 +0000)]
add DB's overhaul of regexp_init() and a few other regex-related bits,
and convert REGEXP_COMPILED to a static int in search.c, since it's only
used there
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1724
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 30 Apr 2004 04:49:02 +0000 (04:49 +0000)]
add restricted mode, per IO ERROR's patch
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1723
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Thu, 29 Apr 2004 06:30:36 +0000 (06:30 +0000)]
in edit_add(), do minor cosmetic reformatting and remove unused int
searched_later_lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1722
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Wed, 28 Apr 2004 21:49:30 +0000 (21:49 +0000)]
remove another unused prototype
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1721
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Tue, 27 Apr 2004 21:06:11 +0000 (21:06 +0000)]
spell Christian Weisgerber's name right
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1720
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Sat, 24 Apr 2004 18:30:23 +0000 (18:30 +0000)]
use napms() instead of nanosleep(), as it does the same thing (aside
from taking an argument in milliseconds instead of microseconds) and
curses includes it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1719
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8
David Lawrence Ramsey [Fri, 23 Apr 2004 18:02:37 +0000 (18:02 +0000)]
work around the NumLock glitch
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1718
35c25a1d -7b9e-4130-9fde-
d3aeb78583b8