term: publish TermOpen in "e term://" handler.

After 87a49405b0, terminal_open() is not
nested by default. The default "term://" handler depended on that, but
it should instead explicitly raise TermOpen.

References #4306
This commit is contained in:
Justin M. Keyes
2016-02-23 19:10:54 -05:00
parent ba1348edc5
commit 72d9d5e917

View File

@@ -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);