mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
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:
@@ -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(¶ms);
|
||||
|
Reference in New Issue
Block a user