nano.texi, and nanorc.sample. (DLR, suggested by Mike
Frysinger)
- Update email address. Changes to faq.html and AUTHORS. (DLR)
+ - 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. Changes to
+ shortcut_init(), do_left(), do_right(), and do_backspace();
+ removal of do_left_void() and do_right_void(). (DLR; problem
+ found by Mike Frysinger)
- color.c:
- Remove unneeded fcntl.h include. (DLR)
- chars.c:
sc_init_one(&main_list, NANO_FORWARD_KEY, N_("Forward"),
IFHELP(nano_forward_msg, NANO_NO_KEY), NANO_NO_KEY,
- NANO_NO_KEY, VIEW, do_right_void);
+ NANO_NO_KEY, VIEW, do_right);
sc_init_one(&main_list, NANO_BACK_KEY, N_("Back"),
IFHELP(nano_back_msg, NANO_NO_KEY), NANO_NO_KEY,
- NANO_NO_KEY, VIEW, do_left_void);
+ NANO_NO_KEY, VIEW, do_left);
sc_init_one(&main_list, NANO_HOME_KEY, N_("Home"),
IFHELP(nano_home_msg, NANO_NO_KEY), NANO_NO_KEY,
}
}
-void do_left(bool allow_update)
+void do_left(void)
{
size_t pww_save = openfile->placewewant;
openfile->placewewant = xplustabs();
- if (allow_update && need_horizontal_update(pww_save))
+ if (need_horizontal_update(pww_save))
update_line(openfile->current, openfile->current_x);
}
-void do_left_void(void)
-{
- do_left(TRUE);
-}
-
-void do_right(bool allow_update)
+void do_right(void)
{
size_t pww_save = openfile->placewewant;
openfile->placewewant = xplustabs();
- if (allow_update && need_horizontal_update(pww_save))
+ if (need_horizontal_update(pww_save))
update_line(openfile->current, openfile->current_x);
}
-
-void do_right_void(void)
-{
- do_right(TRUE);
-}
void do_end(void);
void do_up(void);
void do_down(void);
-void do_left(bool allow_update);
-void do_left_void(void);
-void do_right(bool allow_update);
-void do_right_void(void);
+void do_left(void);
+void do_right(void);
/* Public functions in nano.c. */
filestruct *make_new_node(filestruct *prevnode);
{
if (openfile->current != openfile->fileage ||
openfile->current_x > 0) {
- do_left(FALSE);
+ do_left();
do_delete();
}
}