aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);