]> git.wh0rd.org Git - nano.git/log
nano.git
20 years agoadd my display tweak to do_replace(), my efficiency tweaks to
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

20 years agoadd a consistency fix for do_enter() and a few minor cosmetic fixes
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

20 years agoadd DB's overhaul of the paragraph searching code and some of the
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

20 years agoin do_replace_loop(), make sure old_pww is updated to the current value
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

20 years agoadd a few missing placewewant size_t conversions
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

20 years agoper DB's patch, convert placewewant to a size_t; also add a few
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

20 years agoadd various improvements to the "c-file" regexes by Mike Frysinger, with
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

20 years agoadd Mike Frysinger's sample regexes for patch files
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

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

20 years agomove the main terminal initialization functions, aside from initscr(),
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

20 years agoper Junichi Uekawa's patch in Debian's version of nano, call setlocale()
David Lawrence Ramsey [Tue, 27 Jul 2004 15:46:58 +0000 (15:46 +0000)]
per Junichi Uekawa's patch in Debian's version of nano, call setlocale()
outside the ENABLE_NLS #ifdef, since UTF-8 support (specifically, the
wide character handling functions it needs) won't work properly if the
locale isn't set, whether NLS is enabled or not

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

20 years agofix spacing problem in the "Save Under Different Name" prompt
David Lawrence Ramsey [Sat, 24 Jul 2004 16:50:20 +0000 (16:50 +0000)]
fix spacing problem in the "Save Under Different Name" prompt

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

20 years agofix variable names
David Lawrence Ramsey [Fri, 23 Jul 2004 12:51:40 +0000 (12:51 +0000)]
fix variable names

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

20 years agoa few miscellaneous Pico compatibility tweaks and bugfixes (most
David Lawrence Ramsey [Fri, 23 Jul 2004 12:30:40 +0000 (12:30 +0000)]
a few miscellaneous Pico compatibility tweaks and bugfixes (most
importantly, a fix for a segfault when trying to full-justify a file
with no paragraphs)

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

20 years agorestore erroneously removed toggle* casts
David Lawrence Ramsey [Tue, 20 Jul 2004 12:57:34 +0000 (12:57 +0000)]
restore erroneously removed toggle* casts

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

20 years agoand reset tabsize and wrap_at to their default values if invalid rcfile
David Lawrence Ramsey [Sun, 18 Jul 2004 18:13:54 +0000 (18:13 +0000)]
and reset tabsize and wrap_at to their default values if invalid rcfile
entries are specified for them

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

20 years agoproperly handle invalid tab sizes in nanorc files and make a few more
David Lawrence Ramsey [Sun, 18 Jul 2004 17:43:43 +0000 (17:43 +0000)]
properly handle invalid tab sizes in nanorc files and make a few more
cosmetic cleanups

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

20 years agorevert change to debugging statement that shouldn't be there yet
David Lawrence Ramsey [Sat, 17 Jul 2004 20:01:45 +0000 (20:01 +0000)]
revert change to debugging statement that shouldn't be there yet

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

20 years agocut down on redundant inclusions of <sys/types.h>, include it in proto.h
David Lawrence Ramsey [Sat, 17 Jul 2004 19:49:12 +0000 (19:49 +0000)]
cut down on redundant inclusions of <sys/types.h>, include it in proto.h
per DB's patch, and make a few more minor cosmetic cleanups

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

20 years agofurther clarify one toggle description
David Lawrence Ramsey [Tue, 13 Jul 2004 17:43:08 +0000 (17:43 +0000)]
further clarify one toggle description

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

20 years agoper DB's patch, remove some unneeded reset_cursor() calls, move the one
David Lawrence Ramsey [Tue, 13 Jul 2004 17:09:24 +0000 (17:09 +0000)]
per DB's patch, remove some unneeded reset_cursor() calls, move the one
in the main input loop to the top, and remove the apparently unneeded
wrefresh() call in the main input loop

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

20 years agoadd missing part of the variable type changes in do_gotoline()
David Lawrence Ramsey [Mon, 12 Jul 2004 16:26:55 +0000 (16:26 +0000)]
add missing part of the variable type changes in do_gotoline()

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

20 years agoport over DB's number parsing code and related bits, with a few minor
David Lawrence Ramsey [Mon, 12 Jul 2004 16:07:14 +0000 (16:07 +0000)]
port over DB's number parsing code and related bits, with a few minor
changes of mine, and add a few related variable type changes

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

20 years agovarious changes to cut down on binary size: per DB's patch, add new N_()
David Lawrence Ramsey [Mon, 12 Jul 2004 03:10:30 +0000 (03:10 +0000)]
various changes to cut down on binary size: per DB's patch, add new N_()
macro to mark strings that aren't translated immediately and convert
nano to use it where needed, overhaul the shortcut list and toggle list
initialization code for efficiency, and replace rcfile_msg() with
rcfile_error(); also add a few minor miscellaneous cleanups by DB and
myself

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

20 years agoadd another missing part of DB's patch (read_file() should be returning
David Lawrence Ramsey [Sat, 10 Jul 2004 16:53:17 +0000 (16:53 +0000)]
add another missing part of DB's patch (read_file() should be returning
void instead of int), and rearrange one NANO_SMALL #ifdef for better
readability

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

20 years agoadd one last spacing fix
David Lawrence Ramsey [Thu, 8 Jul 2004 17:29:27 +0000 (17:29 +0000)]
add one last spacing fix

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

20 years agoadd another prototype fix and a few spacing fixes
David Lawrence Ramsey [Thu, 8 Jul 2004 17:15:10 +0000 (17:15 +0000)]
add another prototype fix and a few spacing fixes

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

20 years agoper DB's patch, remove unused global variable search_offscreen
David Lawrence Ramsey [Thu, 8 Jul 2004 15:27:04 +0000 (15:27 +0000)]
per DB's patch, remove unused global variable search_offscreen

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

20 years agomore comment fixes
David Lawrence Ramsey [Wed, 7 Jul 2004 23:26:08 +0000 (23:26 +0000)]
more comment fixes

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

20 years agoanother missing piece of DB's patch: the toggle and rcoption structs
David Lawrence Ramsey [Wed, 7 Jul 2004 15:20:52 +0000 (15:20 +0000)]
another missing piece of DB's patch: the toggle and rcoption structs
should use longs to store their flags too

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

20 years agoadd another missing part of DB's patch to convert flags and related
David Lawrence Ramsey [Wed, 7 Jul 2004 14:36:44 +0000 (14:36 +0000)]
add another missing part of DB's patch to convert flags and related
variables into longs: toggle_init_one() should take a long instead of an
int for its flag parameter

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

20 years agoadd missing part of DB's patch to convert flags and related variables
David Lawrence Ramsey [Wed, 7 Jul 2004 13:57:52 +0000 (13:57 +0000)]
add missing part of DB's patch to convert flags and related variables
into longs: file_flags should be declared as a long instead of an int

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

20 years agoput back erroneously removed initialization of original_umask
David Lawrence Ramsey [Tue, 6 Jul 2004 14:02:44 +0000 (14:02 +0000)]
put back erroneously removed initialization of original_umask

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

20 years agoif we're in restricted mode and the filename isn't blank, disable tab
David Lawrence Ramsey [Mon, 5 Jul 2004 14:27:29 +0000 (14:27 +0000)]
if we're in restricted mode and the filename isn't blank, disable tab
completion at the "Write File" prompt, since we can't change the
filename in that case; also remove an unneeded trailing space

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

20 years agofix inaccurate comment
David Lawrence Ramsey [Sat, 3 Jul 2004 14:34:03 +0000 (14:34 +0000)]
fix inaccurate comment

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

20 years agofix bug in do_justify() in a better way: add on_next_line flag, used to
David Lawrence Ramsey [Sat, 3 Jul 2004 14:15:58 +0000 (14:15 +0000)]
fix bug in do_justify() in a better way: add on_next_line flag, used to
indicate when we've moved to the next line after justifying the current
line, and only run the respacing routine when it's true; this keeps the
respacing routine from erroneously being run more than once on the same
line

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

20 years agofix bug in do_justify(): if all the text from the next line has been
David Lawrence Ramsey [Sat, 3 Jul 2004 05:23:19 +0000 (05:23 +0000)]
fix bug in do_justify(): if all the text from the next line has been
moved to the current line and the next line has been deleted, continue
the justification loop from there and skip the respacing routine in
order to avoid running it more than once on the same line (since it
assumes that we've moved to the next line, which isn't true in that
case)

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

20 years agofor consistency with nano 1.2.x and with other editors, make the mode of
David Lawrence Ramsey [Sat, 3 Jul 2004 03:22:23 +0000 (03:22 +0000)]
for consistency with nano 1.2.x and with other editors, make the mode of
newly created files 666 instead of 600 before it's modified by the
umask; also add a few more minor comment fixes

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

20 years agoa few cleanups and consistency fixes
David Lawrence Ramsey [Sat, 3 Jul 2004 03:09:12 +0000 (03:09 +0000)]
a few cleanups and consistency fixes

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

20 years agoper DB's patch (with a few updates of mine), convert the shortcut list
David Lawrence Ramsey [Fri, 2 Jul 2004 14:31:03 +0000 (14:31 +0000)]
per DB's patch (with a few updates of mine), convert the shortcut list
functions and most related functions to return void instead of int, as
the return values of all those functions are essentially unused; also
add a few related miscellaneous cleanups

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

20 years agoadd missing cosmetic fix from before
David Lawrence Ramsey [Thu, 1 Jul 2004 19:41:09 +0000 (19:41 +0000)]
add missing cosmetic fix from before

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

20 years agomore minor cosmetic fixes
David Lawrence Ramsey [Thu, 1 Jul 2004 18:59:52 +0000 (18:59 +0000)]
more minor cosmetic fixes

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

20 years agoper DB's patch, tweak the code to update the edit window just before
David Lawrence Ramsey [Thu, 1 Jul 2004 17:04:23 +0000 (17:04 +0000)]
per DB's patch, tweak the code to update the edit window just before
getting statusbar input for efficiency, and update bottomwin just before
then too

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

20 years agoper Jon Oberheide's patch, fix erroneous debugging statement so that
David Lawrence Ramsey [Wed, 30 Jun 2004 12:28:15 +0000 (12:28 +0000)]
per Jon Oberheide's patch, fix erroneous debugging statement so that
nano compiles with --enable-debug again

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

20 years agoper Mike Frysinger's patch, have whitespace display default to off
David Lawrence Ramsey [Tue, 29 Jun 2004 12:36:25 +0000 (12:36 +0000)]
per Mike Frysinger's patch, have whitespace display default to off
instead of on

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

20 years agofix erroneous #ifdef so that nano compiles with --disable-justify again
David Lawrence Ramsey [Tue, 29 Jun 2004 00:43:56 +0000 (00:43 +0000)]
fix erroneous #ifdef so that nano compiles with --disable-justify again

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

20 years agoBack to CVS
David Lawrence Ramsey [Mon, 28 Jun 2004 13:23:37 +0000 (13:23 +0000)]
Back to CVS

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

20 years agoGNU nano 1.3.3 v1.3.3
David Lawrence Ramsey [Mon, 28 Jun 2004 13:17:33 +0000 (13:17 +0000)]
GNU nano 1.3.3

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

20 years agorefactor the code to search for the beginning of a paragraph a bit to
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

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

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