2008-11-28 16:06:15 +01:00
|
|
|
--- tw.parse.c
|
2010-02-15 14:04:06 +01:00
|
|
|
+++ tw.parse.c 2008-11-26 17:52:07.190195106 +0000
|
2008-11-28 16:06:15 +01:00
|
|
|
@@ -347,9 +347,19 @@ tenematch(Char *inputline, int num_read,
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
Strbuf_append(&wordbuf, qline.s + wordp);
|
|
|
|
Strbuf_terminate(&wordbuf);
|
|
|
|
cleanup_push(&wordbuf, Strbuf_cleanup);
|
|
|
|
+
|
|
|
|
+ if ((looking == TW_COMMAND) && (*wordbuf.s == '/')) {
|
|
|
|
+ if (executable((Char*)0, wordbuf.s, 0)) {
|
|
|
|
+ cleanup_until(&wordbuf);
|
|
|
|
+ search_ret = 0;
|
|
|
|
+ goto end;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
search_ret = spell_me(&wordbuf, looking, pat, suf);
|
|
|
|
qline.len = wordp;
|
|
|
|
Strbuf_append(&qline, wordbuf.s);
|