From 72d9d5e9176c10348fd0f2b936bc2ed968aec9b8 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 23 Feb 2016 19:10:54 -0500 Subject: [PATCH] term: publish TermOpen in "e term://" handler. After 87a49405b00b38b58c4c1d8fc4069d1a254a621d, terminal_open() is not nested by default. The default "term://" handler depended on that, but it should instead explicitly raise TermOpen. References #4306 --- src/nvim/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvim/main.c b/src/nvim/main.c index a2aca65001..09fe29c087 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -324,7 +324,8 @@ int main(int argc, char **argv) "'\\c\\mterm://\\%(.\\{-}//\\%(\\d\\+:\\)\\?\\)\\?\\zs.*'), " // capture the working directory "{'cwd': get(matchlist(expand(\"\"), " - "'\\c\\mterm://\\(.\\{-}\\)//'), 1, '')})"); + "'\\c\\mterm://\\(.\\{-}\\)//'), 1, '')})" + "|doautocmd TermOpen"); /* Execute --cmd arguments. */ exe_pre_commands(¶ms);