aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'display.c')
-rw-r--r--display.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/display.c b/display.c
index 4b99816..155b514 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.11 2001/12/02 16:26:08 ukai Exp $ */
+/* $Id: display.c,v 1.12 2001/12/04 16:33:08 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -190,6 +190,8 @@ static Buffer *save_current_buf = NULL;
int in_check_url = FALSE;
+char *delayed_msg = NULL;
+
void
displayBuffer(Buffer *buf, int mode)
{
@@ -315,6 +317,11 @@ displayBuffer(Buffer *buf, int mode)
Strcat_charp(msg, "\tNo Line");
clear();
}
+ if (delayed_msg != NULL) {
+ disp_message(delayed_msg, FALSE);
+ delayed_msg = NULL;
+ refresh();
+ }
standout();
message(msg->ptr, buf->cursorX + buf->rootX, buf->cursorY);
standend();
@@ -859,6 +866,12 @@ disp_message_nomouse(char *s, int redraw_current)
#endif
void
+set_delayed_message(char *s)
+{
+ delayed_msg = allocStr(s, -1);
+}
+
+void
cursorUp(Buffer *buf, int n)
{
if (buf->firstLine == NULL)