openbsd-ports/devel/id-utils/patches/patch-src_lid_c
sturm 18a9741557 just match the first 2 chars of EDITOR to recognize vi mode, this way
a value of 'vim' works as expected
sync patches while here

from mfriedl@ who is too shy to commit to ports
2007-07-04 16:39:41 +00:00

13 lines
431 B
Plaintext

$OpenBSD: patch-src_lid_c,v 1.1 2007/07/04 16:39:41 sturm Exp $
--- src/lid.c.orig Wed Jul 4 18:33:25 2007
+++ src/lid.c Wed Jul 4 18:33:45 2007
@@ -609,7 +609,7 @@ report_edit (char const *name, struct file_link **flin
if (eid_arg == 0)
{
- int using_vi = strequ ("vi", basename (editor));
+ int using_vi = strnequ ("vi", basename (editor), 2);
eid_arg = getenv ("EIDARG");
if (eid_arg == 0)