diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-14 17:01:25 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-14 17:01:25 +0000 |
commit | ccd60ac7b7df48c9da63523b586c89b265253678 (patch) | |
tree | e657cb9bb8b5c05006a4e5d929acba33db9438c5 /main.c | |
parent | NEWS: env,rc: https_proxy (diff) | |
download | w3m-ccd60ac7b7df48c9da63523b586c89b265253678.tar.gz w3m-ccd60ac7b7df48c9da63523b586c89b265253678.zip |
[w3m-dev 03430] disable display of alarm command
* main.c (SigAlarm): remove display_message_nsec()
(setAlarm): show sec
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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); |