do_browser()
- Call check_statblank() instead of blanking the statusbar
unconditionally, for consistency. (David Benbennick)
+- move.c:
+ do_first_line(), do_last_line()
+ - Move these functions here from winio.c. (DLR)
- nano.c:
do_toggle(), finish()
- Call blank_statusbar() and blank_bottombars() to blank out
#include "proto.h"
#include "nano.h"
+int do_first_line(void)
+{
+ current = fileage;
+ placewewant = 0;
+ current_x = 0;
+ edit_update(current, TOP);
+ return 1;
+}
+
+int do_last_line(void)
+{
+ current = filebot;
+ placewewant = 0;
+ current_x = 0;
+ edit_update(current, CENTER);
+ return 1;
+}
+
int do_home(void)
{
#ifndef NANO_SMALL
#endif
/* Public functions in move.c */
+int do_first_line(void);
+int do_last_line(void);
int do_home(void);
int do_end(void);
int do_page_up(void);
#ifndef DISABLE_MOUSE
int get_mouseinput(int *mouse_x, int *mouse_y, int shortcut);
#endif
-int do_first_line(void);
-int do_last_line(void);
size_t xplustabs(void);
size_t actual_x(const char *str, size_t xplus);
size_t strnlenpt(const char *buf, size_t size);
}
#endif
-int do_first_line(void)
-{
- current = fileage;
- placewewant = 0;
- current_x = 0;
- edit_update(current, TOP);
- return 1;
-}
-
-int do_last_line(void)
-{
- current = filebot;
- placewewant = 0;
- current_x = 0;
- edit_update(current, CENTER);
- return 1;
-}
-
/* Return the placewewant associated with current_x. That is, xplustabs
* is the zero-based column position of the cursor. Value is no smaller
* than current_x. */