aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:43:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:43:22 +0000
commit48d11533b408ccd44b9818ebe54bc1d8cbbd3710 (patch)
treeab5126564ad22150428e89bacd0d7f88d5ba39bf /main.c
parent[w3m-dev 02759] fold textarea (diff)
downloadw3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.tar.gz
w3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.zip
[w3m-dev 02760]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index 5269e75..d650f1c 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.51 2001/12/27 17:23:07 ukai Exp $ */
+/* $Id: main.c,v 1.52 2001/12/27 17:43:24 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -4616,8 +4616,6 @@ execdict(char *word)
prevtrap = signal(SIGINT, intTrap);
crmode();
buf = getshell(myExtCommand(DICTCMD, shell_quote(w), FALSE)->ptr);
- buf->filename = w;
- buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr;
signal(SIGINT, prevtrap);
term_raw();
if (buf == NULL) {
@@ -4628,7 +4626,11 @@ execdict(char *word)
disp_message(Sprintf("Word \"%s\" Not Found", word)->ptr, FALSE);
}
else {
+ buf->filename = w;
+ buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr;
buf->bufferprop |= (BP_INTERNAL | BP_NO_URL);
+ if (buf->type == NULL)
+ buf->type = "text/plain";
pushBuffer(buf);
}
displayBuffer(Currentbuf, B_FORCE_REDRAW);