From c56f5aed59a4460d2382ce02eddd0948cab94b17 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 28 Jan 2014 16:12:41 +0000 Subject: 32308: Improve initialising of vi change. Better handling when entering viins on entry to editor. Slightly changed since post to use vi command a. --- Src/Zle/zle_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_main.c') diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 040b7cb83..a2b20df25 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1204,7 +1204,7 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish) * no user operation to indicate this. */ if (openkeymap("main") == openkeymap("viins")) - viinsert(NULL); + viinsert_init(); selectlocalmap(NULL); fixsuffix(); if ((s = getlinknode(bufstack))) { -- cgit 1.4.1