Commit Graph

518 Commits (9a5139e9d395504814a8a996a434e3471ed57b6b)

Author SHA1 Message Date
David Lawrence Ramsey e2afdbb14b another typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3579 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-27 14:46:56 +00:00
David Lawrence Ramsey 5b1d876045 typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3578 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 18:50:44 +00:00
David Lawrence Ramsey 2ef7dae971 more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3572 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 11:58:37 +00:00
David Lawrence Ramsey 3c780e1d10 fix edit_redraw() breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3571 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 03:46:03 +00:00
David Lawrence Ramsey 561db3a7c4 comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3570 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 03:22:44 +00:00
David Lawrence Ramsey bd6e968506 redundancy fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3569 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 03:12:35 +00:00
David Lawrence Ramsey d5228b3d82 in edit_redraw(), fix problem where not all lines would be updated
properly if we'd scrolled off the screen and the mark was on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3568 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 03:04:24 +00:00
David Lawrence Ramsey 964722a281 add missing blank line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3567 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-26 03:02:50 +00:00
David Lawrence Ramsey 1320d29267 remove duplicate escape sequence-interpreting code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3566 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-25 22:10:27 +00:00
David Lawrence Ramsey d6eb17515d in parse_kbinput(), if we get Escape followed by an escape sequence,
interpret the escape sequence for consistency; also ignore unhandled
function keys for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3565 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-25 21:39:25 +00:00
David Lawrence Ramsey 305d889e9d more cleanly ignore unhandled meta key sequences and escape sequences;
to get this to work properly, add a shortcut for moving to the next
search/replace string


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3559 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-24 19:48:03 +00:00
David Lawrence Ramsey b4428a0268 fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3556 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-24 18:10:41 +00:00
David Lawrence Ramsey 8e341e1b22 ignore unhandled meta key sequences and escape sequences, and indicate
it on the statusbar when we get an unhandled shortcut or toggle, as Pico
does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3554 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-24 17:36:00 +00:00
David Lawrence Ramsey 6b49e9e54e cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3546 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-22 01:29:30 +00:00
David Lawrence Ramsey ce8623669b handle statusbar blanking in one place instead of many, so that it
always works consistently, per Benno Schulenberg's patch (with a few
tweaks of mine); also, blank the statusbar after 26 keystrokes instead
of 25, for compatibility with Pico


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3541 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-21 21:23:21 +00:00
David Lawrence Ramsey 51cb7fd293 in get_control_kbinput(), fix Ctrl-? breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3532 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-20 17:19:09 +00:00
David Lawrence Ramsey d99b0e1cf3 in display_string(), properly display double-column characters if
they're past the first virtual page and their first column is covered by
the "$" displayed at the beginning of the line


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-19 17:50:01 +00:00
David Lawrence Ramsey b9446ac429 really fix handling of NANO_CONTROL_8
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3527 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-19 14:26:16 +00:00
David Lawrence Ramsey c1c818ebd5 comment and formatting fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3516 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-14 18:22:01 +00:00
David Lawrence Ramsey 4f4a0b9abb fix copyright notice in do_credits()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3511 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-13 16:32:24 +00:00
David Lawrence Ramsey a01f131960 more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3510 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-13 15:03:09 +00:00
David Lawrence Ramsey f70eca06be comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-13 14:59:17 +00:00
David Lawrence Ramsey fc0f8f8c57 allow unjustifying if we resize the window immediately after justifying,
as Pico does, and make input handling across resizes more consistent


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 13:41:53 +00:00
David Lawrence Ramsey b02a1950e7 cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 16:25:12 +00:00
David Lawrence Ramsey a5f833de42 in edit_draw(), properly ignore zero-length regexes in multi-line
regexes as well as single-line ones; this avoids a segfault when trying
to color e.g. "start="$" end="$""


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3484 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 15:57:04 +00:00
David Lawrence Ramsey c7b9e15e9a formatting fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3483 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 15:19:42 +00:00
David Lawrence Ramsey 5f274c4b49 handle NANO_CONTROL_8 even better by doing it in parse_kbinput()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 19:27:41 +00:00
David Lawrence Ramsey 4d9ef69f8e various fixes for get_control_kbinput()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3450 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 18:26:07 +00:00
David Lawrence Ramsey 95b9850517 fix inaccurate comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3435 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-25 13:07:31 +00:00
David Lawrence Ramsey 1df3e2d0bf reorganize the main shortcut list to make it easier for new users, per
Benno Schulenberg's suggestion


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3410 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-22 19:45:26 +00:00
David Lawrence Ramsey d7b804ab6d add missing #ifdefs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-22 18:20:14 +00:00
David Lawrence Ramsey e313f5b2c8 reorganize the global toggle list to make it easier for new users, per
Benno Schulenberg's suggestion


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3404 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 22:29:02 +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 172aa93f4a another comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3389 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-18 15:58:50 +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 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 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 b8d9fb551b remove unneeded #include
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3320 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-24 15:55:34 +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 ec8a055ffd cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3310 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-19 19:26:52 +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 1ec74ee30c remove unneeded blank line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3308 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-19 19:14:30 +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 3a5e6f9317 handle Shift-Delete properly when the -d option is used
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3266 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-01-30 21:23: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 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 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