mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-26 04:16:55 +03:00
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
This commit is contained in:
parent
819c7f0327
commit
9ef3adbc1d
@ -84,6 +84,10 @@ CVS code -
|
||||
thanks_for_all_the_fish()
|
||||
- Delete topwin, edit, and bottomwin. (David Benbennick)
|
||||
- nano.c:
|
||||
do_enter()
|
||||
- Don't treat it as a special case when the user presses Enter
|
||||
on the last line of the screen and smooth scrolling is on, for
|
||||
consistency. (DLR)
|
||||
do_alt_speller()
|
||||
- When reloading the newly spell-checked temporary file, call
|
||||
terminal_init() to make sure that all the original terminal
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
info_TEXINFOS = nano.texi
|
||||
MAKEINFO = makeinfo --no-split
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
DEFS= -DSYSCONFDIR=\"$(sysconfdir)\"
|
||||
localedir = $(datadir)/locale
|
||||
INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
|
||||
|
@ -530,7 +530,7 @@ void do_insertfile(int loading_file)
|
||||
#endif
|
||||
check_operating_dir(answer, FALSE) != 0) {
|
||||
statusbar(_("Can't insert file from outside of %s"),
|
||||
operating_dir);
|
||||
operating_dir);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -1140,14 +1140,6 @@ void do_enter(void)
|
||||
renumber(current);
|
||||
current = newnode;
|
||||
|
||||
#ifndef NANO_SMALL
|
||||
/* If we're in smooth scrolling mode and we're on the last line of
|
||||
* the edit window, move edittop down one line so that current is
|
||||
* onscreen. This prevents edit_refresh() from centering the
|
||||
* screen. */
|
||||
if (ISSET(SMOOTHSCROLL) && current_y == editwinrows - 1)
|
||||
edittop = edittop->next;
|
||||
#endif
|
||||
edit_refresh();
|
||||
|
||||
totlines++;
|
||||
|
Loading…
Reference in New Issue
Block a user