Commit Graph

1891 Commits (b6aaa8f3659fb4f4087b324979eee6a980baff62)

Author SHA1 Message Date
David Lawrence Ramsey 1f09769052 in nano.texi, add minor updates to put some text back in sync with
nano's current feature set


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 15:45:24 +00:00
David Lawrence Ramsey 728c85a119 in nano.texi, add minor updates to put some text back in sync with
nano's help text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3400 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 14:33:36 +00:00
David Lawrence Ramsey 57f97538b1 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3397 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:03:57 +00:00
David Lawrence Ramsey e904888324 in renumber(), remove invalid assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:02:33 +00:00
David Lawrence Ramsey 8ff785cf40 in toggle_init(), in the global toggle list, move the "Constant cursor
position display" toggle up to after the "Use more space for editing"
toggle, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3395 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 23:13:44 +00:00
David Lawrence Ramsey b9eb2be295 in shortcut_init(), in the main shortcut list, move the "Refresh"
shortcut down to after the "Enter" shortcut, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3394 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 22:55:37 +00:00
David Lawrence Ramsey efb4b0a96c add several blank entries to the main shortcut list, in order to make
its help text easier to read


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3392 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 14:09:01 +00:00
David Lawrence Ramsey e806ab8473 adjust the shortcut list display and related mouse support to not waste
the last few characters of bottomwin when the screen width isn't a clean
multiple of the column width, per Benno Schulenberg's patch (with a few
tweaks by me)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3390 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-18 16:13:35 +00:00
David Lawrence Ramsey e916d67389 in nano.texi, mention that backup files and spell checking are disabled
in restricted mode, as rnano.1 does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3388 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:39:15 +00:00
David Lawrence Ramsey 51b1b2f1aa change nano.texi's the license to GPL, in order to match the rest of the
documentation, and because the current license is incompatible with
everything else in any case


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:13:10 +00:00
David Lawrence Ramsey 39b7189a13 in parse_syntax(), don't generate an error if we find a duplicate syntax
name, since we might be trying to override a syntax in the global nanorc
with one in our local nanorc; instead, free any duplicate syntaxes we
find, so that we always use the last syntax with a given name


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-15 16:02:02 +00:00
David Lawrence Ramsey 8f6fb3c6b6 change translator-specific comments in search.c so that they show up in
nano.pot


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3381 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 22:22:00 +00:00
David Lawrence Ramsey f50bd4be88 clarify some help text and documentation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3379 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 20:15:44 +00:00
David Lawrence Ramsey b43648aae2 in configure.ac, remove old warning about color support
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3378 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 18:44:02 +00:00
David Lawrence Ramsey a33ec1deff in parse_syntax(), properly generate an error if we've read in a
previous syntax without any associated color commands


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3377 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 17:20:53 +00:00
David Lawrence Ramsey 8e05c315b2 in nanorc.sample, simplify the "nanorc" regex for commands
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3373 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:50:36 +00:00
David Lawrence Ramsey cee20e50c6 at long last, add the ability to use self-contained color syntaxes from
separate files, accessible in the nanorc via the "include" command


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3372 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:43:54 +00:00
David Lawrence Ramsey 5fac171c8b in do_rcfile(), check for the rcfile's being a directory or device file
and reject it if it is, for consistency with file handling elsewhere;
also remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3369 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 21:44:07 +00:00
David Lawrence Ramsey 4d72de73b1 add the ability to use bold text instead of reverse video text, via the
-D/--boldtext command line option and the "boldtext" rcfile option, and
reduce USE_UTF8 to a static bool in chars.c


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 15:27:40 +00:00
David Lawrence Ramsey af318aaa5c make all translator comments consistent
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3366 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 12:54:23 +00:00
David Lawrence Ramsey cde9039335 change translator-specific comments in global.c and prompt.c so that
they show up in nano.pot


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3365 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:27:42 +00:00
David Lawrence Ramsey 0c4e30be7c add updated French manpages
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3363 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:16:48 +00:00
David Lawrence Ramsey 125b2f0be5 in write_file(), simplify the routine for closing the file just before
we indicate success on the statusbar


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3362 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 05:33:05 +00:00
David Lawrence Ramsey adfecd24b4 simplify the previous fix; also, in write_file(), clarify the error
message when writing a temporary file for prepending fails


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3361 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 04:37:14 +00:00
David Lawrence Ramsey 8055f0935f in open_file(), remove redundant wording in the error message when we
try to open a device file


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3358 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 22:57:22 +00:00
David Lawrence Ramsey f6287eaf54 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3357 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:46:09 +00:00
David Lawrence Ramsey ac8dfca510 in safe_tempfile(), don't ignore $TMPDIR if it's set but blank, for
consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3356 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:41:48 +00:00
David Lawrence Ramsey e5af25baef in write_file(), if we can't save the backup file for some reason, at
least save the original file, if possible, since that's better than
saving nothing


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3355 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 05:18:23 +00:00
David Lawrence Ramsey 5cbd990bf5 in parse_argument(), rename variable ptr_bak to ptr_save, for
consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3353 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:28:52 +00:00
David Lawrence Ramsey 979de2309b open all files in binary mode for consistency and robustness
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3352 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:25:47 +00:00
David Lawrence Ramsey b0588ae45e more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3351 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 16:58:45 +00:00
David Lawrence Ramsey 6d3485e040 various documentation updates
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3348 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 13:40:56 +00:00
David Lawrence Ramsey 22e15eb7ad in write_file(), don't free backupname before displaying it in a
statusbar error message


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3347 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 02:56:47 +00:00
David Lawrence Ramsey 71da75e92c in nanorc.sample, in the comment for the "whitespace" option, state
which character values work with which encodings


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3346 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-01 19:30:52 +00:00
David Lawrence Ramsey d9d29c6220 add sample Python regexes to nanorc.sample
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3345 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 19:39:55 +00:00
David Lawrence Ramsey 0320f5bbac in nanorc.sample, change the comment for the "whitespace" option so that
the hexadecimal character values are six digits long


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3343 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 14:37:55 +00:00
David Lawrence Ramsey 4e0984775a in nanorc.sample, nention in the comments that more than one start/end
regex can be included per line


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3342 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:43:44 +00:00
David Lawrence Ramsey f420bea2ca in nanorc.sample, simplify the "c-file" regex for characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3339 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:26:58 +00:00
David Lawrence Ramsey aa79925d6a in nanorc.sample, simplify the "shellscript" regex for command line
options


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3338 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:18:27 +00:00
David Lawrence Ramsey b8d92feb62 in nanorc.sample, replace instances of \" with ", since quotes inside
string parameters don't need to be escaped with backslashes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3337 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:12:50 +00:00
David Lawrence Ramsey cdf3f22c23 in nanorc.sample, rweak the "c-file" regex for characters to accept '"'
again, as it's apparently valid


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3336 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:07:38 +00:00
David Lawrence Ramsey 04061e76ad update the copyright years of the manual and info pages to include 2006
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3335 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 07:07:48 +00:00
David Lawrence Ramsey e38b808959 implement filename searches in the file browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3334 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 07:03:04 +00:00
David Lawrence Ramsey e3d40d30c7 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3332 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 06:40:25 +00:00
David Lawrence Ramsey 1856ec4425 GNU nano 1.3.11
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3328 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 06:34:43 +00:00
David Lawrence Ramsey 3c43d3d688 replace VERMSG #define with PACKAGE_STRING #define (as defined by
autoconf)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3327 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 01:18:29 +00:00
David Lawrence Ramsey 81bfd8244b typo fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3324 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-26 17:41:47 +00:00
David Lawrence Ramsey 354597f0c2 in get_get_buffer(), die gracefully if input fails MAX_BUF_SIZE times,
not (MAX_BUF_SIZE + 1) times


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3321 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-24 16:04:44 +00:00
David Lawrence Ramsey 231158d61a in do_browser(), make old_selected a size_t too, to match selected
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 23:17:27 +00:00
David Lawrence Ramsey 27ad0cdb37 in do_browser(), make fileline and the static selected size_t's, since
the latter can hold the value of the former, and the former can be that
large


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3312 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 20:36:29 +00:00
David Lawrence Ramsey 9b33d51774 in get_key_buffer(), simplify the check for a lost input source, since
the errno check is unreliable


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3311 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-20 04:46:48 +00:00
David Lawrence Ramsey 9149325400 in get_key_buffer(), if we fail to get a character over MAX_BUF_SIZE
times in a row, hang up regardless of the value of errno; this fixes a
problem where nano doesn't terminate properly under xterm if the user
su's to root, runs nano, and then closes the terminal window


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3309 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-19 19:25:29 +00:00
David Lawrence Ramsey 5115fa6767 in faq.html, change the character set to UTF-8, and remove broken links
to contributed RedHat nano packages


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3306 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-16 19:30:52 +00:00
David Lawrence Ramsey 167a4b7f9c in faq.html, update the Free Translation Project's address
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-16 19:16:28 +00:00
Jordi Mallach 6ac73c9408 Update Swedish credits.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3303 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-15 22:44:43 +00:00
David Lawrence Ramsey 05454cfb75 preemptively update the version numbers of all manpages, and remove
unneeded comments from rnano.1


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3300 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-12 19:34:22 +00:00
David Lawrence Ramsey 3e7821006d mention that quotes inside string parameters don't need to be escaped
with backslashes in nanorc.5 and nanorc.sample


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3299 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-12 19:27:32 +00:00
David Lawrence Ramsey ac0361df6e in do_writeout(), remove unneeded setting of currshortcut
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3297 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-24 19:38:20 +00:00
David Lawrence Ramsey 6816007242 make sure browser_refresh() is used when refreshing or doing tab
completion at the prompt in the file browser


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3296 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-18 21:32:29 +00:00
David Lawrence Ramsey 1f907c7413 rename browser_draw() to browser_refresh() for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3295 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-10 19:02:30 +00:00
David Lawrence Ramsey d4bae13d8d move the browser drawing routines to a separate function, browser_draw()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3293 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 23:26:26 +00:00
David Lawrence Ramsey 8326254643 go back to using a while loop in get_prompt_string(), as it's simpler
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3291 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 22:42:14 +00:00
David Lawrence Ramsey 162ed2af24 in get_prompt_string(), initialize finished to FALSE so that the
do/while loop works properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3290 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 22:35:04 +00:00
David Lawrence Ramsey 3326603341 in get_prompt_string(), redraw the prompt and set finished to FALSE when
NANO_HELP_KEY is pressed, so that we don't leave the prompt, enter the
help browser, and restart the prompt after leaving it; this will
properly preserve the cursor position after doing the last of these


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3289 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 21:43:14 +00:00
David Lawrence Ramsey 08f4974093 in shortcut_init(), remove erroneous handling of the "Get Help" shortcut
in the file browser shortcut list


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3288 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 20:33:45 +00:00
David Lawrence Ramsey 591c409f3f in get_prompt_string(), use a do/while loop instead of a while loop, for
consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3287 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 20:14:49 +00:00
David Lawrence Ramsey c0dcdf43c6 in do_browser(), properly restore the file list display after returning
from the help browser at the "Go To Directory" prompt, and rename
variable j to i, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3286 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 19:27:02 +00:00
David Lawrence Ramsey 9d8c284135 allow tab completion of directories at the "Go To Directory" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 21:11:05 +00:00
David Lawrence Ramsey fc8e5cb0f2 cosmetic and formatting fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3277 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 18:32:22 +00:00
David Lawrence Ramsey 24e0a465c1 in do_browser(), properly set currshortcut back to the file browser
shortcut list after a "Go To Directory" prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 05:14:55 +00:00
David Lawrence Ramsey 91a2a69c4f rework input parsing in the file browser to be more flexible
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3275 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 04:41:44 +00:00
David Lawrence Ramsey 99e3733fc6 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3273 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 04:02:25 +00:00
David Lawrence Ramsey 114cfb63f4 in display_string(), fix memory corruption problems caused by not
allocating enough space for converted when a line ends in a tab(s) and
we're not in UTF-8 mode


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3272 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 03:58:49 +00:00
David Lawrence Ramsey 1f104f8079 fix a comment in nano.h and a minor memory leak in display_string()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3271 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-03 03:51:51 +00:00
David Lawrence Ramsey 475c402b65 in parse_kbinput(), interpret Shift-Begin, Shift-Delete, Shift-End,
Shift-Home, Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home,
Insert, and Suspend, respectively, regardless of whether --rebindkeypad
is used


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3265 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-30 01:32:41 +00:00
David Lawrence Ramsey a6eb8480ea really fix the previous display problem with searches that move the
cursor offscreen and from a page other than the first one onto a
different page by reverting the erroneous change to edit_scroll() and
adding the proper fix to edit_redraw()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3263 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-10 07:51:49 +00:00
David Lawrence Ramsey 76f9485b02 in ngetdelim(), do sanity checks manually again instead of in an assert,
and set errno to EINVAL as well as return -1 if they fail; this matches
the manual page


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3262 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-09 03:23:29 +00:00
David Lawrence Ramsey 1a16df9284 fix "matchbrackets" breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3260 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 22:04:38 +00:00
David Lawrence Ramsey d89617fb17 allow specifying matching bracket characters other than the default via
the "matchbrackets" rcfile option


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3259 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 21:51:10 +00:00
David Lawrence Ramsey a248863b43 rework the bracket searching code to handle multibyte bracket characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3258 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 07:10:30 +00:00
David Lawrence Ramsey 5978f9b11d in mbstrchr(), make parameter c const
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3257 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-06 05:54:44 +00:00
David Lawrence Ramsey 5329f23345 sort the default strings for brackets and punct, and the "or" atom in
the default regex string for quotestr, in order according to ASCII, and
add minor related documentation updates


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-03 04:53:41 +00:00
David Lawrence Ramsey 47cfd197b8 in edit_scroll(), redraw the lines before and after the scrolled region
even if the scrolled region was only one line; this fixes a display
problem that occurs after doing a search that scrolls the screen down
one line and leaves the cursor on the last line of the screen, in which
case we need to update the line after the scrolled region


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3254 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-02 04:30:33 +00:00
David Lawrence Ramsey 5b7b3e3c9c cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3253 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 21:22:54 +00:00
David Lawrence Ramsey 30bdadd4d5 revert previous erroneous change, and clarify comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3252 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 21:08:10 +00:00
David Lawrence Ramsey 89b6e6b9dd in justify_format(), remove redundant character parsing
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3251 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-31 20:37:56 +00:00
David Lawrence Ramsey ce029f2b11 remove unnecessary #ifdef around termios.h #include in nano.c
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3250 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-28 05:01:00 +00:00
David Lawrence Ramsey 1e73bcfe29 fix inaccurate comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3249 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 20:18:06 +00:00
David Lawrence Ramsey da959919fc Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3248 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:15:34 +00:00
David Lawrence Ramsey 2cd986cdef GNU nano 1.3.10
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3246 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:08:19 +00:00
David Lawrence Ramsey 5e4d81c99e in README.CVS, mention that the minimum required version of groff is
1.12, since that's the first version that supports generating HTML


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3245 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 16:07:00 +00:00
David Lawrence Ramsey 628c4e2928 French manpage updates.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3244 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 15:46:26 +00:00
David Lawrence Ramsey e57bd4993e in parse_line_column(), simplify parsing of the column number
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3243 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-23 03:15:12 +00:00
David Lawrence Ramsey 5aaaad4a63 in README.CVS, update the given cvs commands so that they work again
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3240 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-15 04:46:13 +00:00
David Lawrence Ramsey b0e04c0de3 a few last comment and consistency fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3238 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 07:24:54 +00:00
David Lawrence Ramsey 6d6a36c647 add descriptive comments to pretty much all functions and major
variables that don't have them, plus a few miscellaneous minor fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3237 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 07:09:08 +00:00
David Lawrence Ramsey 034b994eb5 since proto.h includes nano.h, and nano.h includes config.h first,
include proto.h first and remove redundant includes of config.h in all
non-header source files


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3236 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 02:47:10 +00:00
David Lawrence Ramsey 8befda6490 readd RETSIGTYPE return types for signal handlers, since any problems
with its being defined as the wrong type aren't nano's fault


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3235 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-06 19:39:56 +00:00
David Lawrence Ramsey 24777c0740 fix compilation with --enable-debug, and remove unneeded assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3234 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-01 05:49:08 +00:00
David Lawrence Ramsey 26ebd35d54 in ngetdelim(), do sanity checks in an assert instead of checking them
manually and returning -1 if they fail


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3232 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-30 19:33:56 +00:00