[w3m-dev 02757]

From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2001-12-27 17:23:06 +00:00
parent cb62f30ad4
commit 4838675c23
2 changed files with 17 additions and 12 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
2001-12-28 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02757]
* main.c (execdict): w = conv_from_system(word)
* main.c (dictword): call execdict() only
2001-12-27 Fumitoshi UKAI <ukai@debian.or.jp> 2001-12-27 Fumitoshi UKAI <ukai@debian.or.jp>
* url.c (openSSLHandle): accept_this_file is out of * url.c (openSSLHandle): accept_this_file is out of
@@ -1697,4 +1703,4 @@
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.187 2001/12/27 02:32:08 ukai Exp $ $Id: ChangeLog,v 1.188 2001/12/27 17:23:06 ukai Exp $
+10 -11
View File
@@ -1,4 +1,4 @@
/* $Id: main.c,v 1.50 2001/12/26 18:29:33 ukai Exp $ */ /* $Id: main.c,v 1.51 2001/12/27 17:23:07 ukai Exp $ */
#define MAINPROGRAM #define MAINPROGRAM
#include "fm.h" #include "fm.h"
#include <signal.h> #include <signal.h>
@@ -4600,6 +4600,7 @@ GetWord(Buffer *buf)
static void static void
execdict(char *word) execdict(char *word)
{ {
char *w;
Buffer *buf; Buffer *buf;
MySignalHandler(*prevtrap) (); MySignalHandler(*prevtrap) ();
@@ -4607,11 +4608,15 @@ execdict(char *word)
displayBuffer(Currentbuf, B_NORMAL); displayBuffer(Currentbuf, B_NORMAL);
return; return;
} }
w = conv_to_system(word);
if (*w == '\0') {
displayBuffer(Currentbuf, B_NORMAL);
return;
}
prevtrap = signal(SIGINT, intTrap); prevtrap = signal(SIGINT, intTrap);
crmode(); crmode();
buf = getshell(myExtCommand(DICTCMD, shell_quote(word), FALSE)->ptr); buf = getshell(myExtCommand(DICTCMD, shell_quote(w), FALSE)->ptr);
buf->filename = word; buf->filename = w;
word = conv_from_system(word);
buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr; buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr;
signal(SIGINT, prevtrap); signal(SIGINT, prevtrap);
term_raw(); term_raw();
@@ -4632,13 +4637,7 @@ execdict(char *word)
void void
dictword(void) dictword(void)
{ {
char *word = inputStr("(dictionary)!", ""); execdict(inputStr("(dictionary)!", ""));
if (word != NULL)
word = conv_to_system(word);
if (word == NULL || *word == '\0')
return;
execdict(word);
} }
void void