Bram Moolenaar
6a07644db3
patch 8.2.1990: cursor position wrong in terminal popup with finished job
...
Problem: Cursor position wrong in terminal popup with finished job.
Solution: Only add the top and left offset when not done already.
(closes #7298 )
2020-11-15 20:32:58 +01:00
Bram Moolenaar
02764713a7
patch 8.2.1985: crash when closing terminal popup with <Cmd> mapping
...
Problem: Crash when closing terminal popup with <Cmd> mapping.
Solution: Check b_term is not NULL. (closes #7294 )
2020-11-14 20:21:55 +01:00
Bram Moolenaar
47c5ea44b9
patch 8.2.1979: "term_opencmd" option of term_start() is truncated
...
Problem: "term_opencmd" option of term_start() is truncated. (Sergey
Vlasov)
Solution: Allocate the buffer to hold the command. (closes #7284 )
2020-11-12 15:12:15 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282 ,
closes 4784, based on patch by Bjorn Linse)
2020-11-12 14:21:06 +01:00
Bram Moolenaar
927495b1fe
patch 8.2.1963: crash when using a popup window with "latin1" encoding
...
Problem: Crash when using a popup window with "latin1" encoding.
Solution: Don't use ScreenLinesUC when enc_utf8 is false. (closes #7241 )
2020-11-06 17:58:35 +01:00
Bram Moolenaar
00806bceb6
patch 8.2.1959: crash when terminal buffer name is made empty
...
Problem: Crash when terminal buffer name is made empty. (Dhiraj Mishra)
Solution: Fall back to "[No Name]". (closes #7262 )
2020-11-05 19:36:38 +01:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +02:00
Bram Moolenaar
9c24cd11e2
patch 8.2.1892: valgrind warns for using uninitialized access in tests
...
Problem: Valgrind warns for using uninitialized access in tests.
Solution: Fix condition for breaking out of loop. (Dominique Pellé,
closes #7187 )
2020-10-23 15:40:39 +02:00
Bram Moolenaar
f43e7ac4ee
patch 8.2.1772: cannot use CTRL-W <Down> to move out of a terminal window
...
Problem: Cannot use CTRL-W <Down> to move out of a terminal window.
Solution: Use special_to_buf() instead of mb_char2bytes(). (closes #7045 )
2020-09-29 21:23:25 +02:00
Bram Moolenaar
c2c8205634
patch 8.2.1664: memory leak when using :mkview with a terminal buffer
...
Problem: Memory leak when using :mkview with a terminal buffer.
Solution: Don't use a hastab for :mkview. (Rob Pilling, closes #6935 )
2020-09-11 22:10:22 +02:00
Bram Moolenaar
0e655111e9
patch 8.2.1662: :mksession does not restore shared terminal buffer properly
...
Problem: :mksession does not restore shared terminal buffer properly.
Solution: Keep a hashtab with terminal buffers. (Rob Pilling, closes #6930 )
2020-09-11 20:36:36 +02:00
Bram Moolenaar
ad30470610
patch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_start
...
Problem: Vim9: cannot pass "true" to submatch(), term_gettty() and
term_start()
Solution: Use tv_get_bool_chk(). (closes #6888 , closes #6890 , closes #6889 )
2020-09-06 18:22:53 +02:00
Bram Moolenaar
2ce14589f2
patch 8.2.1598: starting a hidden terminal resizes the current window
...
Problem: Starting a hidden terminal resizes the current window.
Solution: Do not resize the current window for a hidden terminal.
(closes #6872 )
2020-09-05 16:08:49 +02:00
Bram Moolenaar
b936b79424
patch 8.2.1589: term_start() options for size are overruled by 'termwinsize'
...
Problem: Term_start() options for size are overruled by 'termwinsize'.
(Sergey Vlasov)
Solution: Set 'termwinsize' to the specified size.
2020-09-04 18:34:09 +02:00
Bram Moolenaar
d58d4f90ae
patch 8.2.1108: mouse left-right scroll is not supported in terminal window
...
Problem: Mouse left-right scroll is not supported in terminal window.
Solution: Implement mouse codes 6 and 7. (Trygve Aaberge, closes #6363 )
2020-07-01 15:49:29 +02:00
Bram Moolenaar
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +02:00
Bram Moolenaar
b10090928c
patch 8.2.0862: ":term ++curwin" makes the current buffer hidden
...
Problem: ":term ++curwin" makes the current buffer hidden. (Harm te
Hennepe)
Solution: Do not hide the current buffer. (closes #6170 )
2020-05-31 16:04:42 +02:00
Bram Moolenaar
ca70c07b72
patch 8.2.0853: ml_delete() often called with FALSE argument
...
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-30 20:30:46 +02:00
Bram Moolenaar
b42c0d5427
patch 8.2.0839: dropping modifier when putting a character back in typeahead
...
Problem: Dropping modifier when putting a character back in typeahead.
Solution: Add modifier to ins_char_typebuf(). (closes #6158 )
2020-05-29 22:41:41 +02:00
Bram Moolenaar
f4b68e9056
patch 8.2.0831: compiler warnings for integer sizes
...
Problem: Compiler warnings for integer sizes.
Solution: Add type casts. (Mike Williams)
2020-05-27 21:22:14 +02:00
Bram Moolenaar
98f1671cc0
patch 8.2.0808: not enough testing for the terminal window
...
Problem: Not enough testing for the terminal window.
Solution: Add more tests. (Yegappan Lakshmanan, closes #6069 ) Fix memory
leak.
2020-05-22 13:34:01 +02:00
Bram Moolenaar
e5886ccb51
patch 8.2.0804: libvterm code lags behind the upstream version
...
Problem: Libvterm code lags behind the upstream version.
Solution: Include revision 727, but add the index instead of switching
between RGB and indexed.
2020-05-21 20:10:04 +02:00
Bram Moolenaar
d863728913
patch 8.2.0802: libvterm code lags behind the upstream version
...
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 759 - 762.
2020-05-20 18:41:41 +02:00
Bram Moolenaar
eaa3e0dae5
patch 8.2.0801: terminal test fails on Mac
...
Problem: Terminal test fails on Mac.
Solution: Concatenate OSC pieces.
2020-05-19 23:11:00 +02:00
Bram Moolenaar
be593bf135
patch 8.2.0798: libvterm code lags behind the upstream version
...
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 755 - 758.
2020-05-19 21:20:04 +02:00
Bram Moolenaar
07b761a012
patch 8.2.0645: MS-Windows terminal: CTRL-C does not get to child job
...
Problem: MS-Windows terminal: CTRL-C does not get to child job.
Solution: Remove CREATE_NEW_PROCESS_GROUP from CreateProcessW(). (Nobuhiro
Takasaki, closes #5987 )
2020-04-26 16:06:01 +02:00
Bram Moolenaar
e297802d6d
patch 8.2.0643: terminal uses brown instead of dark yellow
...
Problem: Terminal uses brown instead of dark yellow. (Romain Lafourcade)
Solution: Use color index 3 instead of 130. (closes #5993 )
2020-04-26 14:47:44 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
360bdbda81
patch 8.2.0472: terminal highlight name is set twice, leaking memory
...
Problem: Terminal highlight name is set twice, leaking memory.
Solution: Delete one.
2020-03-28 22:37:14 +01:00
Bram Moolenaar
83d4790a04
patch 8.2.0455: cannot set the highlight group for a specific terminal
...
Problem: Cannot set the highlight group for a specific terminal.
Solution: Add the "highlight" option to term_start(). (closes #5818 )
2020-03-26 20:34:00 +01:00
Bram Moolenaar
d5bc32df20
patch 8.2.0428: buffer name may leak
...
Problem: Buffer name may leak.
Solution: Free the buffer name before overwriting it.
2020-03-22 19:25:50 +01:00
Bram Moolenaar
5e94a29ebb
patch 8.2.0413: buffer menu does not handle special buffers properly
...
Problem: Buffer menu does not handle special buffers properly.
Solution: Keep a dictionary with buffer names to reliably keep track of
entries.
Also trigger BufFilePre and BufFilePost for command-line and
terminal buffers when the name changes.
2020-03-19 18:46:57 +01:00
Bram Moolenaar
3a05ce63fe
patch 8.2.0373: type of term_sendkeys() is unknown
...
Problem: Type of term_sendkeys() is unknown.
Solution: Just return zero. (closes #5762 )
2020-03-11 19:30:01 +01:00
Bram Moolenaar
cee52204ca
patch 8.2.0371: crash with combination of terminal popup and autocmd
...
Problem: Crash with combination of terminal popup and autocmd.
Solution: Disallow closing a popup that is the current window. Add a check
that the current buffer is valid. (closes #5754 )
2020-03-11 14:19:58 +01:00
Bram Moolenaar
e52e0c89d1
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
...
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708 )
2020-02-28 22:20:10 +01:00
Bram Moolenaar
e010c720b2
patch 8.2.0314: short name not set for terminal buffer
...
Problem: Short name not set for terminal buffer.
Solution: Set the short name. (closes #5687 )
2020-02-24 21:37:54 +01:00
Bram Moolenaar
7ba3b91e03
patch 8.2.0237: crash when setting 'wincolor' on finished terminal window
...
Problem: Crash when setting 'wincolor' on finished terminal window.
(Bakudankun)
Solution: Check that the vterm is not NULL. (Yasuhiro Matsumoto, closes
#5607 , closes #5610 )
2020-02-10 20:34:04 +01:00
Bram Moolenaar
d98c0b63ab
patch 8.2.0196: blocking commands for a finished job in a popup window
...
Problem: Blocking commands for a finished job in a popup window.
Solution: Do not block commands if the job has finished. Adjust test.
2020-02-02 15:25:16 +01:00
Bram Moolenaar
219c7d0638
patch 8.2.0191: cannot put a terminal in a popup window
...
Problem: Cannot put a terminal in a popup window.
Solution: Allow opening a terminal in a popup window. It will always have
keyboard focus until closed.
2020-02-01 21:57:29 +01:00
Bram Moolenaar
21109272f5
patch 8.2.0181: problems parsing :term arguments
...
Problem: Problems parsing :term arguments.
Solution: Improve parsing, fix memory leak, add tests. (Ozaki Kiichi,
closes #5536 )
2020-01-30 16:27:20 +01:00
Bram Moolenaar
b09920203a
patch 8.2.0179: still a few places where range() does not work
...
Problem: Still a few places where range() does not work.
Solution: Fix using range() causing problems.
2020-01-30 14:55:42 +01:00
Bram Moolenaar
0d6f5d9740
patch 8.1.2395: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 21:33:15 +01:00
Bram Moolenaar
adf4aa200b
patch 8.1.2291: memory leak when executing command in a terminal
...
Problem: Memory leak when executing command in a terminal.
Solution: Free "argv". (Dominique Pelle, closes #5208 )
2019-11-10 22:36:44 +01:00
Bram Moolenaar
2d6d76f9cd
patch 8.1.2255: ":term ++shell" does not work on MS-Windows
...
Problem: ":term ++shell" does not work on MS-Windows.
Solution: Add MS-Windows support.
2019-11-04 23:18:35 +01:00
Bram Moolenaar
197c6b7da3
patch 8.1.2251: ":term command" may not work without a shell
...
Problem: ":term command" may not work without a shell.
Solution: Add the ++shell option to :term. (closes #3340 )
2019-11-03 23:37:12 +01:00
Bram Moolenaar
1e814bc017
patch 8.1.2248: CTRL-W dot does not work when modifyOtherKeys is enabled
...
Problem: CTRL-W dot does not work in a terminal when modifyOtherKeys is
enabled.
Solution: Use the modifier when needed. Pass the modifier along with the
key to avoid mistakes.
2019-11-03 21:19:41 +01:00
Bram Moolenaar
28ed4dfe1f
patch 8.1.2219: no autocommand for open window with terminal
...
Problem: No autocommand for open window with terminal.
Solution: Add TerminalWinOpen. (Christian Brabandt)
2019-10-26 16:21:40 +02:00
Bram Moolenaar
8f7ab4bd1e
patch 8.1.2204: crash on exit when closing terminals
...
Problem: Crash on exit when closing terminals. (Corey Hickey)
Solution: Actually wait for the job to stop. (closes #5100 )
2019-10-23 23:16:45 +02:00
Bram Moolenaar
4d14bac8e7
patch 8.1.2195: Vim does not exit when the terminal window is last window
...
Problem: Vim does not exit when closing a terminal window and it is the
last window.
Solution: Exit Vim if the closed terminal window is the last one.
(closes #4539 )
2019-10-20 21:15:15 +02:00