aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-27 19:08:41 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-27 19:08:41 -0500
commitb01db02de4753908b3595b5ada0a6929e595e930 (patch)
tree35ef5628a54449241965ffad4866c9ce9fd42137 /src
parent62321e5132ed29b11f79c8a56ca172d56b9ac042 (diff)
parent72d9d5e9176c10348fd0f2b936bc2ed968aec9b8 (diff)
downloadrneovim-b01db02de4753908b3595b5ada0a6929e595e930.tar.gz
rneovim-b01db02de4753908b3595b5ada0a6929e595e930.tar.bz2
rneovim-b01db02de4753908b3595b5ada0a6929e595e930.zip
Merge pull request #4362 from justinmk/termopen
term: publish TermOpen in "e term://" handler.
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);