aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/main.c b/main.c
index 347d8c0..f09f190 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.130 2002/11/14 16:56:23 ukai Exp $ */
+/* $Id: main.c,v 1.131 2002/11/14 17:01:29 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -5230,12 +5230,7 @@ SigAlarm(SIGNAL_ARG)
#endif
CurrentCmdData = NULL;
onA();
- if (alarm_status == AL_EXPLICIT) {
- disp_message_nsec(Sprintf("%s %s", w3mFuncList[alarm_event.cmd].id,
- data ? data : "")->ptr,
- FALSE, alarm_sec - 1, FALSE, TRUE);
- }
- else if (alarm_status & AL_IMPLICIT) {
+ if (alarm_status & AL_IMPLICIT) {
alarm_buffer = Currentbuf;
alarm_status = AL_IMPLICIT_DONE | (alarm_status & AL_ONCE);
}
@@ -5274,8 +5269,8 @@ setAlarm(void)
if (cmd >= 0) {
data = getQWord(&data);
setAlarmEvent(sec, AL_EXPLICIT, cmd, data);
- disp_message_nsec(Sprintf("%s %s", w3mFuncList[cmd].id, data)->ptr,
- FALSE, sec - 1, FALSE, TRUE);
+ disp_message_nsec(Sprintf("%dsec %s %s", sec, w3mFuncList[cmd].id,
+ data)->ptr, FALSE, 1, FALSE, TRUE);
}
else {
setAlarmEvent(0, AL_UNSET, FUNCNAME_nulcmd, NULL);