|
38 | 38 | * in tl_scrollback are no longer used. |
39 | 39 | * |
40 | 40 | * TODO: |
41 | | - * - Add a flag to kill the job when Vim is exiting. Useful when it's showing |
42 | | - * a logfile. Or send keys there to make it quit: "exit\r" for a shell. |
| 41 | + * - if the job in the terminal does not support the mouse, we can use the |
| 42 | + * mouse in the Terminal window for copy/paste and scrolling. |
43 | 43 | * - When using 'termguicolors' still use the 16 ANSI colors as-is. Helps for |
| 44 | + * - In the GUI use a terminal emulator for :!cmd. Make the height the same as |
| 45 | + * the window and position it higher up when it gets filled, so it looks like |
| 46 | + * the text scrolls up. |
| 47 | + * - implement term_setsize() |
| 48 | + * - Copy text in the vterm to the Vim buffer once in a while, so that |
| 49 | + * completion works. |
44 | 50 | * - Adding WinBar to terminal window doesn't display, text isn't shifted down. |
45 | 51 | * a job that uses 16 colors while Vim is using > 256. |
46 | 52 | * - in GUI vertical split causes problems. Cursor is flickering. (Hirohito |
47 | 53 | * Higashi, 2017 Sep 19) |
48 | | - * - Trigger TerminalOpen event? #2422 patch in #2484 |
49 | 54 | * - after resizing windows overlap. (Boris Staletic, #2164) |
50 | 55 | * - Redirecting output does not work on MS-Windows, Test_terminal_redir_file() |
51 | 56 | * is disabled. |
52 | | - * - if the job in the terminal does not support the mouse, we can use the |
53 | | - * mouse in the Terminal window for copy/paste and scrolling. |
54 | 57 | * - cursor blinks in terminal on widows with a timer. (xtal8, #2142) |
55 | | - * - When closing gvim with an active terminal buffer, the dialog suggests |
56 | | - * saving the buffer. Should say something else. (Manas Thakur, #2215) |
57 | | - * Also: #2223 |
58 | 58 | * - Termdebug does not work when Vim build with mzscheme. gdb hangs. |
59 | 59 | * - MS-Windows GUI: WinBar has tearoff item |
60 | 60 | * - MS-Windows GUI: still need to type a key after shell exits? #1924 |
61 | 61 | * - After executing a shell command the status line isn't redraw. |
62 | | - * - implement term_setsize() |
63 | 62 | * - add test for giving error for invalid 'termsize' value. |
64 | 63 | * - support minimal size when 'termsize' is "rows*cols". |
65 | 64 | * - support minimal size when 'termsize' is empty? |
66 | 65 | * - GUI: when using tabs, focus in terminal, click on tab does not work. |
67 | | - * - GUI: when 'confirm' is set and trying to exit Vim, dialog offers to save |
68 | | - * changes to "!shell". |
69 | | - * (justrajdeep, 2017 Aug 22) |
70 | 66 | * - Redrawing is slow with Athena and Motif. Also other GUI? (Ramel Eshed) |
71 | 67 | * - For the GUI fill termios with default values, perhaps like pangoterm: |
72 | 68 | * http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134 |
73 | 69 | * - when 'encoding' is not utf-8, or the job is using another encoding, setup |
74 | 70 | * conversions. |
75 | | - * - In the GUI use a terminal emulator for :!cmd. Make the height the same as |
76 | | - * the window and position it higher up when it gets filled, so it looks like |
77 | | - * the text scrolls up. |
78 | | - * - Copy text in the vterm to the Vim buffer once in a while, so that |
79 | | - * completion works. |
80 | 71 | * - add an optional limit for the scrollback size. When reaching it remove |
81 | 72 | * 10% at the start. |
82 | 73 | */ |
@@ -582,6 +573,8 @@ term_start(typval_T *argvar, jobopt_T *opt, int without_job, int forceit) |
582 | 573 | term_close_buffer(curbuf, old_curbuf); |
583 | 574 | return NULL; |
584 | 575 | } |
| 576 | + |
| 577 | + apply_autocmds(EVENT_TERMINALOPEN, NULL, NULL, FALSE, curbuf); |
585 | 578 | return newbuf; |
586 | 579 | } |
587 | 580 |
|
|
0 commit comments