]> git.wh0rd.org Git - nano.git/log
nano.git
20 years agoAdd a translation comment so translators use both their shortcuts as well as the...
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

20 years agoFix XSI:ism in config.rpath.
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

20 years agocall justify_format() just after backup_lines() instead of inside it, so
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

20 years agominor cosmetic fixes
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

20 years agomake the former flag same_line_wrap use TRUE and FALSE, add missing part
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

20 years agoadd minor comment fixes, and also fix a problem where the escape
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

20 years agofix inaccurate comment
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

20 years agodo_yesno() comment fixes
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

20 years agoclean up main() a bit
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

20 years agofix slightly misplaced break
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

20 years agoremove unneeded justify_format() call from do_justify() which caused
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

20 years agoper CHAO Wei-Lun's patch, add missing "[dir]" and missing _()'s to the
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

20 years agojustification fix: if the last line of a justified paragraph has a space
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

20 years agodocument the functions that were removed when the input routines were
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

20 years agoadd an extra break and move an #endif down to fix a potential problem
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

20 years agoproperly handle it when get_escape_seq_kbinput() returns ERR for an
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

20 years agosupport KEY_A1, KEY_A3, KEY_C1, and KEY_C3 on the numeric keypad
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

20 years agodocument the use of the SPELL environment variable
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

20 years agodon't rely on the return value of curs_set(), as it's broken on e.g.
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

20 years agocosmetic fixes
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

20 years agoedit_redraw() should update when we're not on the first page and/or when
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

20 years agoUpdate docs about Chinese contributor.
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

20 years ago2004-06-01 Jordi Mallach <jordi@gnu.org>
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

20 years agoadd DB's tweaks to do_wrap(), plus a few minor bits of mine (convert
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

20 years agofix comment inaccuracies
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

20 years agooops; for consistency with e.g. color syntax highlighting (which, like
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

20 years agofor consistency, whitespace display should be off by default, not on
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

20 years agoadd spaces to the ends of the "Overwrite" and "Different Name" prompts,
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

20 years agoedit_redraw() fixes
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

20 years agoadd DB's changes to allow scrolling through the help browser text with
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

20 years agodocument cosmetic reorganization of rcfile.c, and readd an "else" I
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

20 years agoadd a few comment fixes and an explicit check in rcfile.c for
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

20 years agoa few last cosmetic reorderings and fixes
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

20 years agoallow the changing of closing punctuation and closing brackets (used in
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

20 years agoadd Mike Frysinger's patch (with minor modifications) to allow
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

20 years agosince KEEP_CUTBUFFER is only used in cut.c, make it a static variable in
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

20 years agofix minor omission: the smarthome option was documented in nanorc.5 as
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

20 years agocosmetic fixes
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

20 years agoadd some comments better explaining what is disabled in restricted mode
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

20 years agodon't bother initializing the backup directory or reading $SPELL for the
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

20 years agocheck $SPELL for an alternative spell checker if we didn't get one from
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

20 years agoadd missing cast to char
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

20 years agooverhaul the routines for movement and related things to eliminate
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

20 years agorefactor the low-level input routines into main routines that get the
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

20 years agoadd code to statusq() to *really* not allow "Full Justify" while in view
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

20 years agofix problems caused by cut and paste of the do_para_end() shortcut for
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

20 years agomake write_marked() always call write_file() with nonamechange set to
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

20 years agoadd DB's tweaks to do_enter() and remove the now-unused center_cursor()
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

20 years agotreat search_last_line as a boolean everywhere, and remove some unneeded
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

20 years agoproperly account for padding in titlebar()
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

20 years agoper DB's patch, make finish() accept and return void, since none of the
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

20 years agocosmetic fix: reorder enums
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

20 years agoper DB's patch, also remove the now-unused center_cursor()
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

20 years agoper DB's patch, remove the now-unused edit_refresh_clearok()
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

20 years agocomment fixes for consistency: "Meta" -> "meta"
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

20 years agoconvert do_para_search() to use an enum to specify its search type
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

20 years agocomment fix for consistency: "magic line" -> "magicline"
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

20 years agocomment fix
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

20 years agoswitch test around in do_prev_word() for consistency with do_next_word()
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

20 years agomove do_(first|last)_line() to move.c
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

20 years agocomment fixes
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

20 years agoadd missing bit
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

20 years agoadd DB's changes to titlebar() (with a few tweaks of mine) to make it
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

20 years agocosmetic fix
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

20 years agoadd missing #ifdefs around prototypes
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

20 years agoadd smart home key
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

20 years agocomment fix: justify_format() could have just left out a space at the
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

20 years agocomment fix
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

20 years agogo back to cbreak mode and disable_signals() instead of raw mode, as
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

20 years agocomment fix: ^J should be Ctrl-J
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

20 years agoadd missing bit from DB's refactoring of do_credits(): translate the
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

20 years agominor overhaul of terminal-related things
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

20 years agoand remove unneccessary initialization
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

20 years agotweak justification so that it works the same way as the current version
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

20 years agoremove some unneeded edit_update()s in do_para_search() and do_justify()
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

20 years agoif multibuffer support is compiled in, properly read in multiple files
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

20 years agoin main(), don't open the first file in quiet mode, since if we do, an
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

20 years agoone last comment fix
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

20 years agothe last of the minor fixes
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

20 years agocomment fix
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

20 years agoone last minor cosmetic change
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

20 years agominor cosmetic fixes
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

20 years agominor cosmetic fixes
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

20 years agoreformat the test programs in configure.ac to be on multiple lines for
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

20 years agoadd support for Pico's ability to justify the entire file at once ("full
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

20 years agoadd isblank() equivalent and use it instead of checking for (tab or
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

20 years agonanorc.sample updates: add missing mouse entry, and add backupdir and
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

20 years agofix more info page inaccuracies
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

20 years agodisable "Where Is Next" in tiny mode
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

20 years agofix minor inconsistency
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

20 years agoclarifications to comments explaining exactly what control characters
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

20 years agoadd DB's overhaul of regexp_init() and a few other regex-related bits,
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

20 years agoadd restricted mode, per IO ERROR's patch
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

20 years agoin edit_add(), do minor cosmetic reformatting and remove unused int
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

20 years agoremove another unused prototype
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

20 years agospell Christian Weisgerber's name right
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

20 years agouse napms() instead of nanosleep(), as it does the same thing (aside
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

20 years agowork around the NumLock glitch
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

20 years agomake the verbatim and escape sequence input routines use size_t's to
David Lawrence Ramsey [Thu, 22 Apr 2004 03:41:04 +0000 (03:41 +0000)]
make the verbatim and escape sequence input routines use size_t's to
hold lengths, and use a properly cast nrealloc() instead of an uncast
realloc() in the former

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

20 years agocosmetic changelog fix
David Lawrence Ramsey [Wed, 21 Apr 2004 23:04:55 +0000 (23:04 +0000)]
cosmetic changelog fix

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