Commit Graph

2011 Commits (ec15fdb30b780b0f31b0a7232615ee9bdcb6dc8f)

Author SHA1 Message Date
David Lawrence Ramsey aee00d4d14 if the mark isn't on, allow Meta-} and Meta-{ to indent and unindent
only the current line, just as it would if the mark covered only the
current line, instead of displaying a statusbar message and quitting


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3758 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 18:42:22 +00:00
David Lawrence Ramsey 85e35e67a2 in get_full_path(), don't return NULL when the current directory doesn't
exist, as we can still recover from that, and also add various cleanups


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 14:14:06 +00:00
David Lawrence Ramsey 51b7b0e7d8 in browser_refresh() and titlebar(), don't display overly long filenames
with ellipses if the number of columns is extremely small; also, in
certain places, call wnoutrefresh(bottomwin) after calling
blank_statusbar(), in order to ensure that the statusbar is actually
blanked


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 06:38:47 +00:00
David Lawrence Ramsey 567d471681 in display_string(), properly handle buf[start_index]'s being a null
terminator


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3749 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 05:31:21 +00:00
David Lawrence Ramsey a7bdd2e9c6 in do_browse_from(), during the operating directory check, if path isn't
NULL, don't bother freeing it before mallocstrcpy()ing operating_dir
into it, as the latter operation will free it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 03:38:49 +00:00
David Lawrence Ramsey 2f7c1a0613 calculate width in browser_init(), as it's more consistent
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3741 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 02:05:24 +00:00
David Lawrence Ramsey b520d509cc still more cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3740 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 01:13:19 +00:00
David Lawrence Ramsey c0ba4bf3e0 simplify and remove redundancies from various bits
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3739 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-05 01:10:18 +00:00
David Lawrence Ramsey f8d085d2ed in browser_refresh(), fix problem where width wouldn't be properly
initialized sometimes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3738 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-04 23:47:22 +00:00
David Lawrence Ramsey ed467e50ff in browser_refresh(), add translator comments explaining the maximum
intended lengths of "(dir)" and "(parent dir)"; also add various
formatting fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-03 18:40:53 +00:00
David Lawrence Ramsey 6b90657d94 more miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 18:45:45 +00:00
David Lawrence Ramsey 85ffaeeefc in browser_refresh(), if a filename is too long, truncate and display an
ellipsis before it, as titlebar() does; also add various miscellaneous
minor fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3719 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 18:29:49 +00:00
David Lawrence Ramsey c021925abb in browser_init(), fix off-by-one error when calculating longest that
kept the rightmost column of the screen from being used


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-07-02 17:00:07 +00:00
David Lawrence Ramsey 21cdee5517 update changelog entries
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3713 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 22:36:29 +00:00
David Lawrence Ramsey 6f499096ad in do_browser() and do_help(), simplify screen update handling
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3708 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 21:01:55 +00:00
David Lawrence Ramsey a4e92c8ad6 in striponedir(), return the stripped path instead of modifying path
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3704 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 14:14:40 +00:00
David Lawrence Ramsey fef232a672 in striponedir(), since all the strings passed to this are dynamically
allocated, use null_at() to strip the directory from the string


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 13:58:29 +00:00
David Lawrence Ramsey 8cd0d2c751 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3702 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:27:15 +00:00
David Lawrence Ramsey 0fd5d60477 revert last changes, as the "Go to Directory" prompt can allow movement
anywhere, so the error message won't make sense in some cases


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3701 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:26:14 +00:00
David Lawrence Ramsey 6cefb9f21a in do_browser(), display an error messsage on the statusbar if we try to
move up from "/" via the "Go to Directory" prompt, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:03:42 +00:00
David Lawrence Ramsey d04037760d in do_browser(), after entering "..", select the directory we were in
before instead of the first filename in the list, as Pico does; add new
function browser_select_filename() to help do this properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3698 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 06:41:31 +00:00
David Lawrence Ramsey ef45a2528c add missing comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 05:12:53 +00:00
David Lawrence Ramsey 727c244ab6 in findnextfile(), simplify the uses of tail()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 04:46:24 +00:00
David Lawrence Ramsey 68e2c375e7 in browser_refresh(), for the ".." entry, display "(parent dir)" instead
of "(dir)", as Pico does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3695 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 03:19:28 +00:00
David Lawrence Ramsey 99c87ccb0c in browser_refresh(), fix problems where translated versions of "(dir)"
could be truncated, and where file sizes could be too long


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3694 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 02:44:11 +00:00
David Lawrence Ramsey b0c1bc28f8 in browser_refresh(), simplify more things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3692 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:46:05 +00:00
David Lawrence Ramsey 0e92adf153 in browser_refresh(), simplify the for loop
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:28:39 +00:00
David Lawrence Ramsey 3b722460b8 in do_browser(), remove unneeded call to blank_edit()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3690 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:08:00 +00:00
David Lawrence Ramsey 865ad94100 in get_mouseinput(), handle both releases and clicks of mouse button 1,
as the mouse support works better that way


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3689 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 01:38:58 +00:00
David Lawrence Ramsey 2f94f42730 in do_browser(), refactor and simplify the mouse support, modeling it
after do_mouse() for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-28 22:38:11 +00:00
David Lawrence Ramsey 98e4d4f3b1 fix mouse support so that it really ignores everything except releases
of button 1 (i.e, left clicks)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3686 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-28 21:54:55 +00:00
David Lawrence Ramsey f23cc46655 comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3685 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-27 00:39:42 +00:00
David Lawrence Ramsey decae6c25e per Mike Frysinger's patch, in doc/syntax/c.nanorc, since .i and .ii are
preprocessed C and C++ output, colorize them there


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3684 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-26 23:40:31 +00:00
David Lawrence Ramsey 74d8ebc041 add various option description fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3683 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-26 04:39:31 +00:00
David Lawrence Ramsey 899d0360ec Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3682 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-26 04:03:31 +00:00
David Lawrence Ramsey db5b54767c GNU nano 1.3.12
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3680 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-26 04:01:31 +00:00
David Lawrence Ramsey 5c8d316a27 per John M. Gabriele's patch with a few tweaks by me, in README and
README.CVS, add various cosmetic and wording improvements


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3678 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-25 04:37:05 +00:00
David Lawrence Ramsey d76de38109 in edit_draw(), don't display any statusbar message when we get a
zero-length regex, as we can get one under legitimate circumstances


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3677 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-21 20:51:36 +00:00
David Lawrence Ramsey 5c878088a1 in update_line(), remove unneeded assert, and now-unused function
check_linenumbers()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3676 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-21 16:54:51 +00:00
David Lawrence Ramsey a4fc77a5da in digits(), return the proper number of digits when n is exactly 10,
and simplify it to use a for loop instead of a while loop


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3674 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-21 16:01:20 +00:00
David Lawrence Ramsey 23ed015725 in help_init(), display the shortcut list help text even when we have
fewer than 24 columns, for consistency with the toggle help text, and
add various minor consistency fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3669 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-19 16:04:42 +00:00
David Lawrence Ramsey bd2c8f3d2d in help_init(), make sure we have enough memory in all cases when
displaying the shortcut and toggle lists; and wrap the shortcut list
help text, for consistency with the toggle help text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3668 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-19 15:35:35 +00:00
David Lawrence Ramsey 186c795b88 in help_line_len(), properly handle the case where we can't break the
line of help text, and wrap the line of help text at (COLS - 1) instead
of (COLS - 8), for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3666 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-19 14:18:22 +00:00
David Lawrence Ramsey 4f2a073cf9 per Benno Schulenberg's patch, in do_writeout(), fix problem where the
modifiers at the "Write File" prompt were marked for translation via
gettext no-ops but never actually translated; also, in do_insertfile(),
use actual gettext calls instead of no-ops, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3660 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-14 13:19:43 +00:00
David Lawrence Ramsey b0226fb86a in faq.html, update section 5.3, due to the display fix for two-column
Unicode characters


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3659 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-12 20:26:38 +00:00
David Lawrence Ramsey 503bad02fe disable mouse support while suspended
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3655 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-09 18:24:37 +00:00
David Lawrence Ramsey f32e1dd589 in do_spell(), set currshortcut to main_list before calling
total_refresh() near the end of the function, so that we don't display
the wrong shortcut list


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3651 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-09 17:09:51 +00:00
David Lawrence Ramsey b5e66d05cb make the changed suspend/continue routines work properly under slang
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3650 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-09 16:57:41 +00:00
David Lawrence Ramsey 3ce7e9dcac in do_spell(), call total_redraw() instead of total_refresh() after
running the spell-checker, since the latter will display the wrong
shortcut list


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3649 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-09 16:34:00 +00:00
David Lawrence Ramsey 85c775a3a3 make suspension clear the screen and put the cursor on the last line
before displaying anything, as Pico does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3648 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-09 16:04:19 +00:00