w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 264099af6ec8557bebce4a3749f43aa325825f6e
parent d04caf5aa343d6f2c9c130bd9e8975e18577d127
Author: ukai <ukai>
Date:   Thu,  7 Mar 2002 16:10:22 +0000

[w3m-dev 03087] vi +1 emptyfile
* etc.c (myEditor): line > 1
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Metc.c | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git 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] diff --git a/etc.c b/etc.c @@ -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); }