diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-23 19:10:54 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-23 19:10:54 -0500 |
commit | 72d9d5e9176c10348fd0f2b936bc2ed968aec9b8 (patch) | |
tree | 95857d91dcc42be6633c3dfabd58b499a234a1df /src | |
parent | ba1348edc5ea99f45ac98d6445a6a918a7e681fb (diff) | |
download | rneovim-72d9d5e9176c10348fd0f2b936bc2ed968aec9b8.tar.gz rneovim-72d9d5e9176c10348fd0f2b936bc2ed968aec9b8.tar.bz2 rneovim-72d9d5e9176c10348fd0f2b936bc2ed968aec9b8.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(\"<amatch>\"), " - "'\\c\\mterm://\\(.\\{-}\\)//'), 1, '')})"); + "'\\c\\mterm://\\(.\\{-}\\)//'), 1, '')})" + "|doautocmd TermOpen"); /* Execute --cmd arguments. */ exe_pre_commands(¶ms); |