aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-23 19:10:54 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-23 19:10:54 -0500
commit72d9d5e9176c10348fd0f2b936bc2ed968aec9b8 (patch)
tree95857d91dcc42be6633c3dfabd58b499a234a1df /src
parentba1348edc5ea99f45ac98d6445a6a918a7e681fb (diff)
downloadrneovim-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.c3
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(&params);