]> git.wh0rd.org Git - nano.git/log
nano.git
19 years agotweak do_delete() to not mark the file as modified if we delete the
David Lawrence Ramsey [Tue, 8 Nov 2005 22:59:10 +0000 (22:59 +0000)]
tweak do_delete() to not mark the file as modified if we delete the
newline before filebot and a magicline is added as a result, as it did
before the NO_NEWLINES flag was added

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

19 years agoadd missing changelog entry
David Lawrence Ramsey [Tue, 8 Nov 2005 19:40:59 +0000 (19:40 +0000)]
add missing changelog entry

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

19 years agoin do_alt_speller(), move the code that replaces the text of the current
David Lawrence Ramsey [Tue, 8 Nov 2005 19:15:58 +0000 (19:15 +0000)]
in do_alt_speller(), move the code that replaces the text of the current
file with the text of the spell-checked file into its own function,
replace_buffer()

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

19 years agomake do_int_spell_fix() and do_alt_speller() take the NO_NEWLINES flag
David Lawrence Ramsey [Tue, 8 Nov 2005 18:34:12 +0000 (18:34 +0000)]
make do_int_spell_fix() and do_alt_speller() take the NO_NEWLINES flag
into account

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

19 years agoinitialize the static pid_t pid in text.c, just in case
David Lawrence Ramsey [Tue, 8 Nov 2005 16:45:22 +0000 (16:45 +0000)]
initialize the static pid_t pid in text.c, just in case

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

19 years agotweak do_alt_speller() to remove the assumption that the file always
David Lawrence Ramsey [Tue, 8 Nov 2005 16:37:29 +0000 (16:37 +0000)]
tweak do_alt_speller() to remove the assumption that the file always
ends in a magicline

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

19 years agoremove unneeded blank line
David Lawrence Ramsey [Tue, 8 Nov 2005 04:55:59 +0000 (04:55 +0000)]
remove unneeded blank line

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

19 years agocosmetic fix
David Lawrence Ramsey [Tue, 8 Nov 2005 02:27:11 +0000 (02:27 +0000)]
cosmetic fix

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

19 years agocorrection: in mbwidth(), use the width of Unicode U+FFFD (Replacement
David Lawrence Ramsey [Tue, 8 Nov 2005 02:24:17 +0000 (02:24 +0000)]
correction: in mbwidth(), use the width of Unicode U+FFFD (Replacement
Character) instead of hardcoding a width of one for unprintable
characters

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

19 years agoin mbwidth(), if wcwidth() returns -1 for the character passed in, treat
David Lawrence Ramsey [Tue, 8 Nov 2005 02:20:22 +0000 (02:20 +0000)]
in mbwidth(), if wcwidth() returns -1 for the character passed in, treat
the character as being one column wide instead of zero columns wide,
since there are display problems that crop up with the latter approach

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 8 Nov 2005 02:07:13 +0000 (02:07 +0000)]
comment fix

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

19 years agomake sure we refresh the statusbar prompt text when tab-completing or
David Lawrence Ramsey [Tue, 8 Nov 2005 01:49:14 +0000 (01:49 +0000)]
make sure we refresh the statusbar prompt text when tab-completing or
moving through history

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

19 years agoactually use statusbar_pww in the statusbar prompt code to cut down on
David Lawrence Ramsey [Mon, 7 Nov 2005 21:45:44 +0000 (21:45 +0000)]
actually use statusbar_pww in the statusbar prompt code to cut down on
redundant updates, add related functions to do that, and rename a few of
the statusbar prompt functions for consistency

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

19 years agoadd the statusbar prompt's equivalent of placewewant,statusbar_pww, to
David Lawrence Ramsey [Mon, 7 Nov 2005 06:32:07 +0000 (06:32 +0000)]
add the statusbar prompt's equivalent of placewewant,statusbar_pww, to
prompt.c, and convert (most of) its functions to use it

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

19 years agoin update_line(), remove now-unneeded logic that set the index parameter
David Lawrence Ramsey [Mon, 7 Nov 2005 06:20:02 +0000 (06:20 +0000)]
in update_line(), remove now-unneeded logic that set the index parameter
to zero if the fileptr parameter didn't point to current

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

19 years agomove do_verbatim_input() from nano.c to text.c, since it's an advanced
David Lawrence Ramsey [Mon, 7 Nov 2005 06:06:05 +0000 (06:06 +0000)]
move do_verbatim_input() from nano.c to text.c, since it's an advanced
text-based operation

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

19 years agoreorder functions
David Lawrence Ramsey [Sat, 5 Nov 2005 20:04:16 +0000 (20:04 +0000)]
reorder functions

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

19 years agomove functions specific to the file browser to their own source file,
David Lawrence Ramsey [Sat, 5 Nov 2005 20:01:11 +0000 (20:01 +0000)]
move functions specific to the file browser to their own source file,
browser.c

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

19 years agotweak do_last_line() to remove the assumption that the file always ends
David Lawrence Ramsey [Sat, 5 Nov 2005 17:50:06 +0000 (17:50 +0000)]
tweak do_last_line() to remove the assumption that the file always ends
in a magicline

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

19 years agofix changelog entry
David Lawrence Ramsey [Sat, 5 Nov 2005 17:37:39 +0000 (17:37 +0000)]
fix changelog entry

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

19 years agoadd new -L/--nonewlines command line option, and new "nonewlines" rcfile
David Lawrence Ramsey [Sat, 5 Nov 2005 17:35:44 +0000 (17:35 +0000)]
add new -L/--nonewlines command line option, and new "nonewlines" rcfile
option, to control whether nano adds magiclines to the ends of files

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

19 years agotweak open_buffer() and read_file() to remove the assumption that the
David Lawrence Ramsey [Sat, 5 Nov 2005 17:20:39 +0000 (17:20 +0000)]
tweak open_buffer() and read_file() to remove the assumption that the
file always ends in a magicline

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

19 years agoformatting fix
David Lawrence Ramsey [Sat, 5 Nov 2005 06:08:44 +0000 (06:08 +0000)]
formatting fix

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

19 years agocosmetic fixes
David Lawrence Ramsey [Sat, 5 Nov 2005 04:59:00 +0000 (04:59 +0000)]
cosmetic fixes

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

19 years agocomment fix
David Lawrence Ramsey [Fri, 4 Nov 2005 16:34:51 +0000 (16:34 +0000)]
comment fix

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

19 years agofix inconsistent wording in nano.texi
David Lawrence Ramsey [Fri, 4 Nov 2005 06:43:02 +0000 (06:43 +0000)]
fix inconsistent wording in nano.texi

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

19 years agofix breakage
David Lawrence Ramsey [Fri, 4 Nov 2005 06:21:39 +0000 (06:21 +0000)]
fix breakage

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

19 years agosimplify
David Lawrence Ramsey [Fri, 4 Nov 2005 05:59:41 +0000 (05:59 +0000)]
simplify

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

19 years agotweak write_file() to remove the assumption that the file always ends in
David Lawrence Ramsey [Fri, 4 Nov 2005 05:44:01 +0000 (05:44 +0000)]
tweak write_file() to remove the assumption that the file always ends in
a magicline, and remove a bit of apparently unneeded logic from
read_file()

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

19 years agoremove unneeded assert in do_rcfile()
David Lawrence Ramsey [Fri, 4 Nov 2005 04:10:09 +0000 (04:10 +0000)]
remove unneeded assert in do_rcfile()

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

19 years agorevert erroneous change
David Lawrence Ramsey [Thu, 3 Nov 2005 21:38:51 +0000 (21:38 +0000)]
revert erroneous change

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

19 years agotweak a few functions to remove the assumption that the file always ends
David Lawrence Ramsey [Thu, 3 Nov 2005 21:08:39 +0000 (21:08 +0000)]
tweak a few functions to remove the assumption that the file always ends
in a magicline, and to rely on fileage and filebot instead of NULL for
their checks to detect the top or bottom of the file

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

19 years agomove do_yesno() to prompt.c too
David Lawrence Ramsey [Thu, 3 Nov 2005 21:07:24 +0000 (21:07 +0000)]
move do_yesno() to prompt.c too

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

19 years agoremove unneeded sys/wait.h #include from files.c
David Lawrence Ramsey [Thu, 3 Nov 2005 02:45:54 +0000 (02:45 +0000)]
remove unneeded sys/wait.h #include from files.c

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

19 years agoadd missing stdio.h #include to text.c too
David Lawrence Ramsey [Wed, 2 Nov 2005 19:42:02 +0000 (19:42 +0000)]
add missing stdio.h #include to text.c too

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

19 years agomove check_linenumbers(), dump_buffer(), and dump_buffer_reverse() from
David Lawrence Ramsey [Wed, 2 Nov 2005 15:44:01 +0000 (15:44 +0000)]
move check_linenumbers(), dump_buffer(), and dump_buffer_reverse() from
winio.c to utils.c too

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

19 years agoin do_yesno(), make mouse clicks on the Yes/No/All shortcuts work properly when the...
David Lawrence Ramsey [Wed, 2 Nov 2005 15:32:30 +0000 (15:32 +0000)]
in do_yesno(), make mouse clicks on the Yes/No/All shortcuts work properly when the MORE_SPACE flag is set

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

19 years agomore function reordering, plus comment fixes
David Lawrence Ramsey [Tue, 1 Nov 2005 23:00:56 +0000 (23:00 +0000)]
more function reordering, plus comment fixes

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

19 years agoreorder functions
David Lawrence Ramsey [Tue, 1 Nov 2005 20:11:55 +0000 (20:11 +0000)]
reorder functions

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

19 years agomove functions specific to the help browser to their own source file,
David Lawrence Ramsey [Tue, 1 Nov 2005 19:32:45 +0000 (19:32 +0000)]
move functions specific to the help browser to their own source file,
help.c, and adjust related variables accordingly

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

19 years agoformatting fix
David Lawrence Ramsey [Tue, 1 Nov 2005 19:29:56 +0000 (19:29 +0000)]
formatting fix

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

19 years agoproperly handle the case where the user resized the window while at the
David Lawrence Ramsey [Tue, 1 Nov 2005 19:06:01 +0000 (19:06 +0000)]
properly handle the case where the user resized the window while at the
statusbar prompt, in which case prompt won't be NULL when statusq() is
called

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

19 years agoadd missing changelog update
David Lawrence Ramsey [Tue, 1 Nov 2005 18:44:29 +0000 (18:44 +0000)]
add missing changelog update

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

19 years agofix breakage
David Lawrence Ramsey [Tue, 1 Nov 2005 18:39:07 +0000 (18:39 +0000)]
fix breakage

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

19 years agofree prompt when it isn't used, and add missing stdio.h #includes
David Lawrence Ramsey [Tue, 1 Nov 2005 18:35:47 +0000 (18:35 +0000)]
free prompt when it isn't used, and add missing stdio.h #includes

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

19 years agomove get_page_start() from winio.c to utils.c too, and fix a few
David Lawrence Ramsey [Tue, 1 Nov 2005 17:45:31 +0000 (17:45 +0000)]
move get_page_start() from winio.c to utils.c too, and fix a few
comments

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

19 years agomove functions specific to the statusbar prompt to their own source
David Lawrence Ramsey [Tue, 1 Nov 2005 17:37:44 +0000 (17:37 +0000)]
move functions specific to the statusbar prompt to their own source
file, prompt.c, and adjust related variables accordingly

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

19 years agomove xplustabs(), actual_x(), strnlenpt(), and strlenpt() from winio.c
David Lawrence Ramsey [Mon, 31 Oct 2005 23:07:58 +0000 (23:07 +0000)]
move xplustabs(), actual_x(), strnlenpt(), and strlenpt() from winio.c
to utils.c, as they're really utility functions

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

19 years agorefactor the statusbar code to have and use statusbar_xplustabs(), for
David Lawrence Ramsey [Mon, 31 Oct 2005 19:36:37 +0000 (19:36 +0000)]
refactor the statusbar code to have and use statusbar_xplustabs(), for
consistency

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

19 years agoin nanoget_repaint(), rename parameter inputbuf to buf, for consistency
David Lawrence Ramsey [Mon, 31 Oct 2005 01:32:46 +0000 (01:32 +0000)]
in nanoget_repaint(), rename parameter inputbuf to buf, for consistency

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

19 years agoremove declaration of the now-static char* prompt
David Lawrence Ramsey [Fri, 28 Oct 2005 17:14:11 +0000 (17:14 +0000)]
remove declaration of the now-static char* prompt

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

19 years agocosmetic fixes
David Lawrence Ramsey [Fri, 28 Oct 2005 17:12:58 +0000 (17:12 +0000)]
cosmetic fixes

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

19 years agorename edit_add() to edit_draw(), and rename its parameter yval to line
David Lawrence Ramsey [Thu, 27 Oct 2005 20:10:45 +0000 (20:10 +0000)]
rename edit_add() to edit_draw(), and rename its parameter yval to line

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

19 years agoin nanorc.sample, also tweak the "c-file" regex for characters to
David Lawrence Ramsey [Thu, 27 Oct 2005 19:06:47 +0000 (19:06 +0000)]
in nanorc.sample, also tweak the "c-file" regex for characters to
properly reject '"' and '''

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

19 years agoin nanorc.sample, tweak the "c-file" regex for characters to properly
David Lawrence Ramsey [Thu, 27 Oct 2005 18:59:23 +0000 (18:59 +0000)]
in nanorc.sample, tweak the "c-file" regex for characters to properly
handle '\"'

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

19 years agofix inaccurate comment
David Lawrence Ramsey [Thu, 27 Oct 2005 15:33:05 +0000 (15:33 +0000)]
fix inaccurate comment

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

19 years agomake sure we don't treat a click on an empty area of the shortcut list
David Lawrence Ramsey [Thu, 27 Oct 2005 15:27:09 +0000 (15:27 +0000)]
make sure we don't treat a click on an empty area of the shortcut list
as a statusbar prompt click

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

19 years agomake prompt a static instead of a global, since it's only used in
David Lawrence Ramsey [Thu, 27 Oct 2005 05:00:48 +0000 (05:00 +0000)]
make prompt a static instead of a global, since it's only used in
winio.c

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

19 years agoat long last, properly handle mouse clicks on the statusbar prompt text
David Lawrence Ramsey [Thu, 27 Oct 2005 04:51:41 +0000 (04:51 +0000)]
at long last, properly handle mouse clicks on the statusbar prompt text

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

19 years agocosmetically refactor statusbar()
David Lawrence Ramsey [Thu, 27 Oct 2005 03:35:42 +0000 (03:35 +0000)]
cosmetically refactor statusbar()

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

19 years agorefactor nanoget_repaint() to split out the new function
David Lawrence Ramsey [Wed, 26 Oct 2005 23:14:59 +0000 (23:14 +0000)]
refactor nanoget_repaint() to split out the new function
get_statusbar_page_start(), the statusbar prompt's equivalent of
get_page_start(); also make sure that the minimum allowed terminal size
in columns is 4, as the statusbar prompt code relies on this assumption
and will crash otherwise

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

19 years agotypo fix
David Lawrence Ramsey [Tue, 25 Oct 2005 06:27:38 +0000 (06:27 +0000)]
typo fix

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

19 years agoadd the ability to scroll up or down single lines without scrolling the
David Lawrence Ramsey [Mon, 24 Oct 2005 02:12:09 +0000 (02:12 +0000)]
add the ability to scroll up or down single lines without scrolling the
cursor, via Meta-- and Meta-+; note that this is disabled when
NANO_SMALL is defined

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

19 years agoBack to CVS
David Lawrence Ramsey [Mon, 24 Oct 2005 01:46:27 +0000 (01:46 +0000)]
Back to CVS

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

19 years agoGNU nano 1.3.9 v1.3.9
David Lawrence Ramsey [Mon, 24 Oct 2005 01:44:23 +0000 (01:44 +0000)]
GNU nano 1.3.9

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

19 years agoFrench manpage updates.
Jordi Mallach [Sun, 23 Oct 2005 19:53:43 +0000 (19:53 +0000)]
French manpage updates.

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

19 years agoMass update from the TP.
Jordi Mallach [Sun, 23 Oct 2005 18:50:44 +0000 (18:50 +0000)]
Mass update from the TP.

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

19 years agoin nanorc.sample, tweak one "TeX" regex to use the "icolor" directive
David Lawrence Ramsey [Tue, 11 Oct 2005 19:20:52 +0000 (19:20 +0000)]
in nanorc.sample, tweak one "TeX" regex to use the "icolor" directive

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

19 years agocosmetic fix
David Lawrence Ramsey [Sat, 8 Oct 2005 06:12:41 +0000 (06:12 +0000)]
cosmetic fix

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

19 years agoin do_tab(), make sure that we insert the correct number of spaces if
David Lawrence Ramsey [Fri, 7 Oct 2005 15:57:48 +0000 (15:57 +0000)]
in do_tab(), make sure that we insert the correct number of spaces if
the TABS_TO_SPACES flag is set and placewewant is greater than the
current column position of the cursor

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

19 years agoadd missing string translation
David Lawrence Ramsey [Thu, 6 Oct 2005 20:46:11 +0000 (20:46 +0000)]
add missing string translation

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

19 years agoUpdate Catalan to match the TP file.
Jordi Mallach [Thu, 6 Oct 2005 20:20:50 +0000 (20:20 +0000)]
Update Catalan to match the TP file.

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

19 years agoin get_key_buffer(), only save all open buffers and hang up when a
David Lawrence Ramsey [Thu, 6 Oct 2005 05:28:37 +0000 (05:28 +0000)]
in get_key_buffer(), only save all open buffers and hang up when a
blocking wgetch() returns ERR and errno is set to EIO (input/output
error); if errno is set to something else, recover properly; this fixes
problems with nano's erroneously hanging up while e.g. resizing or
unsuspending in a chroot

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

19 years agoadd the last of Mike Frysinger's "c-file" regex improvements, slightly
David Lawrence Ramsey [Tue, 4 Oct 2005 04:52:06 +0000 (04:52 +0000)]
add the last of Mike Frysinger's "c-file" regex improvements, slightly
simplified by me

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

19 years agoadd most of Mike Frysinger's "c-file" regex tweaks and improvements
David Lawrence Ramsey [Tue, 4 Oct 2005 04:21:43 +0000 (04:21 +0000)]
add most of Mike Frysinger's "c-file" regex tweaks and improvements

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

19 years agocomment fix
David Lawrence Ramsey [Tue, 4 Oct 2005 03:41:32 +0000 (03:41 +0000)]
comment fix

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

19 years agoin display_string(), *really* avoid a memory corruption problem by
David Lawrence Ramsey [Tue, 4 Oct 2005 03:40:41 +0000 (03:40 +0000)]
in display_string(), *really* avoid a memory corruption problem by
allocating enough space for (COLS + 1) characters

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

19 years agopreemptively update the version number
David Lawrence Ramsey [Tue, 27 Sep 2005 19:56:12 +0000 (19:56 +0000)]
preemptively update the version number

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

19 years agocosmetic fix: sort the meta sequence #defines in ASCII order
David Lawrence Ramsey [Mon, 26 Sep 2005 02:58:16 +0000 (02:58 +0000)]
cosmetic fix: sort the meta sequence #defines in ASCII order

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

19 years agominor documentation updates
David Lawrence Ramsey [Mon, 26 Sep 2005 02:14:37 +0000 (02:14 +0000)]
minor documentation updates

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

19 years agocosmetic fix
David Lawrence Ramsey [Sun, 25 Sep 2005 18:42:05 +0000 (18:42 +0000)]
cosmetic fix

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

19 years agoin get_escape_seq_kbinput(), fix a typo preventing the
David Lawrence Ramsey [Sat, 24 Sep 2005 19:42:48 +0000 (19:42 +0000)]
in get_escape_seq_kbinput(), fix a typo preventing the
VT100/VT220/VT320/xterm/rxvt escape sequence for ',' on the numeric
keypad with NumLock off from being interpreted properly

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

19 years agocosmetic fixes
David Lawrence Ramsey [Tue, 20 Sep 2005 19:46:39 +0000 (19:46 +0000)]
cosmetic fixes

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

19 years agorevert previous changes, as lines are broken on tabs regardless of goal
David Lawrence Ramsey [Tue, 20 Sep 2005 19:44:19 +0000 (19:44 +0000)]
revert previous changes, as lines are broken on tabs regardless of goal

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

19 years agoin break_line(), fix another problem where goal could be miscalculated
David Lawrence Ramsey [Tue, 20 Sep 2005 19:36:39 +0000 (19:36 +0000)]
in break_line(), fix another problem where goal could be miscalculated
on lines containing tabs

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

19 years agomiscellaneous minor fix
David Lawrence Ramsey [Tue, 20 Sep 2005 17:52:52 +0000 (17:52 +0000)]
miscellaneous minor fix

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

19 years ago*really* fix the previous break_line() problem
David Lawrence Ramsey [Tue, 20 Sep 2005 17:47:27 +0000 (17:47 +0000)]
*really* fix the previous break_line() problem

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

19 years agoreally fix the previous break_line() problem
David Lawrence Ramsey [Tue, 20 Sep 2005 16:36:08 +0000 (16:36 +0000)]
really fix the previous break_line() problem

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

19 years agoin break_line(), fix a problem where a line could be broken in the
David Lawrence Ramsey [Tue, 20 Sep 2005 06:12:54 +0000 (06:12 +0000)]
in break_line(), fix a problem where a line could be broken in the
middle of a multibyte character

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

19 years agoin display_string(), really avoid a memory corruption problem by
David Lawrence Ramsey [Tue, 20 Sep 2005 04:15:33 +0000 (04:15 +0000)]
in display_string(), really avoid a memory corruption problem by
allocating enough space for COLS characters

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

19 years agofix another minor spacing problem in titlebar()
David Lawrence Ramsey [Fri, 16 Sep 2005 17:24:22 +0000 (17:24 +0000)]
fix another minor spacing problem in titlebar()

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

19 years agocomment fixes
David Lawrence Ramsey [Wed, 14 Sep 2005 20:20:58 +0000 (20:20 +0000)]
comment fixes

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

19 years agoin (control_)?mbrep(), if crep is an invalid multibyte sequence, copy
David Lawrence Ramsey [Wed, 14 Sep 2005 19:17:56 +0000 (19:17 +0000)]
in (control_)?mbrep(), if crep is an invalid multibyte sequence, copy
Unicode 0xFFFD (Replacement Character) into it using strncpy() instead
of assigning the former to it; this avoids segfaults when freeing crep
later, since it's supposed to be dynamically allocated

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

19 years agoremove do_(left|right)()'s ability to optionally not update the current
David Lawrence Ramsey [Tue, 13 Sep 2005 04:53:44 +0000 (04:53 +0000)]
remove do_(left|right)()'s ability to optionally not update the current
line, as this was only used in do_backspace(), and it didn't always
update the screen properly

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

19 years agomore miscellaneous minor fixes
David Lawrence Ramsey [Tue, 13 Sep 2005 04:45:46 +0000 (04:45 +0000)]
more miscellaneous minor fixes

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

19 years agofix changelog entry
David Lawrence Ramsey [Tue, 6 Sep 2005 06:25:25 +0000 (06:25 +0000)]
fix changelog entry

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

19 years agoin display_string(), if column is less than start_col and the
David Lawrence Ramsey [Mon, 5 Sep 2005 01:36:47 +0000 (01:36 +0000)]
in display_string(), if column is less than start_col and the
character's a tab, which can be possible if there are enough tabs and
the terminal size is sufficiently large, don't try to display it using
control_mbrep()

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

19 years agocomment fix
David Lawrence Ramsey [Sun, 4 Sep 2005 03:29:47 +0000 (03:29 +0000)]
comment fix

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

19 years agoin configure.ac, update the description of the ENABLE_COLOR option to
David Lawrence Ramsey [Fri, 2 Sep 2005 19:13:27 +0000 (19:13 +0000)]
in configure.ac, update the description of the ENABLE_COLOR option to
mention the need for regex.h

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

19 years agoif we don't have regex.h and hence regex support, disable color support,
David Lawrence Ramsey [Fri, 2 Sep 2005 19:09:36 +0000 (19:09 +0000)]
if we don't have regex.h and hence regex support, disable color support,
as it depends on the use of regexes

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