commit f14be47878dfd0a0a7ded38352361219a903081a
parent c51f5f4bff031a2b4104c5e9dc852db803e196b0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 13 Oct 2019 16:21:31 +0200
tweaks: move two functions to after the one that they make use of
Diffstat:
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git 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
@@ -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)