aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-07 16:10:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-07 16:10:22 +0000
commit52d8b3564902f8880d925bf033bef49d0a9bf095 (patch)
tree4f5b80917af9f52c6f2e34b8bbb7c113335a5ba3
parent* version.c.in: 0.3+cvs (diff)
downloadw3m-52d8b3564902f8880d925bf033bef49d0a9bf095.tar.gz
w3m-52d8b3564902f8880d925bf033bef49d0a9bf095.zip
[w3m-dev 03087] vi +1 emptyfile
* etc.c (myEditor): line > 1 From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
-rw-r--r--ChangeLog7
-rw-r--r--etc.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2aa847d..19deb81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-08 YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
+
+ * [w3m-dev 03087] vi +1 emptyfile
+ * etc.c (myEditor): line > 1
+
2002-03-06 Christian Weisgerber <w3m-dev-en@mips.inka.de>
* [w3m-dev-en 00699]
@@ -3063,4 +3068,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.334 2002/03/06 03:32:10 ukai Exp $
+$Id: ChangeLog,v 1.335 2002/03/07 16:10:22 ukai Exp $
diff --git a/etc.c b/etc.c
index 736ea06..c2b83e4 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.20 2002/03/06 03:32:11 ukai Exp $ */
+/* $Id: etc.c,v 1.21 2002/03/07 16:10:22 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -1143,7 +1143,7 @@ myEditor(char *cmd, char *file, int line)
if (!set_file) {
if (tmp == NULL)
tmp = Strnew_charp(cmd);
- if (!set_line && line > 0 && strcasestr(cmd, "vi"))
+ if (!set_line && line > 1 && strcasestr(cmd, "vi"))
Strcat(tmp, Sprintf(" +%d", line));
Strcat_m_charp(tmp, " ", file, NULL);
}