main: Make using :edit term:// run TermOpen event

Ref #4306
This commit is contained in:
ZyX
2016-02-28 04:49:26 +03:00
parent a1493215a2
commit b32396170f
2 changed files with 24 additions and 1 deletions

View File

@@ -317,7 +317,7 @@ int main(int argc, char **argv)
}
// open terminals when opening files that start with term://
do_cmdline_cmd("autocmd BufReadCmd term://* "
do_cmdline_cmd("autocmd BufReadCmd term://* nested "
":call termopen( "
// Capture the command string
"matchstr(expand(\"<amatch>\"), "