tweaks: move two functions to after the one that they make use of
parent
c51f5f4bff
commit
f14be47878
|
@ -629,9 +629,9 @@ void check_statusblank(void);
|
||||||
char *display_string(const char *buf, size_t column, size_t span,
|
char *display_string(const char *buf, size_t column, size_t span,
|
||||||
bool isdata, bool isprompt);
|
bool isdata, bool isprompt);
|
||||||
void titlebar(const char *path);
|
void titlebar(const char *path);
|
||||||
|
void statusline(message_type importance, const char *msg, ...);
|
||||||
void statusbar(const char *msg);
|
void statusbar(const char *msg);
|
||||||
void warn_and_shortly_pause(const char *msg);
|
void warn_and_shortly_pause(const char *msg);
|
||||||
void statusline(message_type importance, const char *msg, ...);
|
|
||||||
void bottombars(int menu);
|
void bottombars(int menu);
|
||||||
void post_one_key(const char *keystroke, const char *tag, int width);
|
void post_one_key(const char *keystroke, const char *tag, int width);
|
||||||
void place_the_cursor(void);
|
void place_the_cursor(void);
|
||||||
|
|
28
src/winio.c
28
src/winio.c
|
@ -2164,20 +2164,6 @@ void titlebar(const char *path)
|
||||||
wrefresh(topwin);
|
wrefresh(topwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display a normal message on the statusbar, quietly. */
|
|
||||||
void statusbar(const char *msg)
|
|
||||||
{
|
|
||||||
statusline(HUSH, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Warn the user on the statusbar and pause for a moment, so that the
|
|
||||||
* message can be noticed and read. */
|
|
||||||
void warn_and_shortly_pause(const char *msg)
|
|
||||||
{
|
|
||||||
statusline(ALERT, msg);
|
|
||||||
napms(1800);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Display a message on the statusbar, and set suppress_cursorpos to
|
/* Display a message on the statusbar, and set suppress_cursorpos to
|
||||||
* TRUE, so that the message won't be immediately overwritten if
|
* TRUE, so that the message won't be immediately overwritten if
|
||||||
* constant cursor position display is on. */
|
* constant cursor position display is on. */
|
||||||
|
@ -2279,6 +2265,20 @@ void statusline(message_type importance, const char *msg, ...)
|
||||||
statusblank = 26;
|
statusblank = 26;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Display a normal message on the statusbar, quietly. */
|
||||||
|
void statusbar(const char *msg)
|
||||||
|
{
|
||||||
|
statusline(HUSH, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Warn the user on the statusbar and pause for a moment, so that the
|
||||||
|
* message can be noticed and read. */
|
||||||
|
void warn_and_shortly_pause(const char *msg)
|
||||||
|
{
|
||||||
|
statusline(ALERT, msg);
|
||||||
|
napms(1800);
|
||||||
|
}
|
||||||
|
|
||||||
/* Display the shortcut list corresponding to menu on the last two rows
|
/* Display the shortcut list corresponding to menu on the last two rows
|
||||||
* of the bottom portion of the window. */
|
* of the bottom portion of the window. */
|
||||||
void bottombars(int menu)
|
void bottombars(int menu)
|
||||||
|
|
Loading…
Reference in New Issue