From f14be47878dfd0a0a7ded38352361219a903081a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 13 Oct 2019 16:21:31 +0200 Subject: [PATCH] tweaks: move two functions to after the one that they make use of --- src/proto.h | 2 +- src/winio.c | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/proto.h b/src/proto.h index a5fb880f..260119ce 100644 --- a/src/proto.h +++ b/src/proto.h @@ -629,9 +629,9 @@ void check_statusblank(void); char *display_string(const char *buf, size_t column, size_t span, bool isdata, bool isprompt); void titlebar(const char *path); +void statusline(message_type importance, const char *msg, ...); void statusbar(const char *msg); void warn_and_shortly_pause(const char *msg); -void statusline(message_type importance, const char *msg, ...); void bottombars(int menu); void post_one_key(const char *keystroke, const char *tag, int width); void place_the_cursor(void); diff --git a/src/winio.c b/src/winio.c index d256c144..82d09df0 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2164,20 +2164,6 @@ void titlebar(const char *path) 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 * TRUE, so that the message won't be immediately overwritten if * constant cursor position display is on. */ @@ -2279,6 +2265,20 @@ void statusline(message_type importance, const char *msg, ...) 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 * of the bottom portion of the window. */ void bottombars(int menu)