Bram Moolenaar
9271d058c9
patch 8.0.1542: terminal screen dump does not include cursor position
...
Problem: Terminal screen dump does not include cursor position.
Solution: Mark the cursor position in the cump.
2018-02-25 21:39:46 +01:00
Bram Moolenaar
6bb2cdfe60
patch 8.0.1539: no test for the popup menu positioning
...
Problem: No test for the popup menu positioning.
Solution: Add a screendump test for the popup menu.
2018-02-24 19:53:53 +01:00
Bram Moolenaar
da65058a9c
patch 8.0.1526: no test using a screen dump yet
...
Problem: No test using a screen dump yet.
Solution: Add a test for C syntax highlighting. Add helper functions.
2018-02-20 15:51:40 +01:00
Bram Moolenaar
9c8816bd30
patch 8.0.1524: compiler warnings for uninitialized variables
...
Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution: Initialize variables.
2018-02-19 21:50:42 +01:00
Bram Moolenaar
d96ff16511
patch 8.0.1523: cannot write and read terminal screendumps
...
Problem: Cannot write and read terminal screendumps.
Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
Also add assert_equalfile().
2018-02-18 22:13:29 +01:00
Bram Moolenaar
73cddfd559
patch 8.0.1521: Shift-Tab does not work in a terminal window
...
Problem: Shift-Tab does not work in a terminal window.
Solution: Recognize Shift-Tab key press. (Jsees Luehrs, closes #2644 )
2018-02-16 20:01:04 +01:00
Bram Moolenaar
181ca99e16
patch 8.0.1520: cursor in wrong line when using a WinBar in Terminal window
...
Problem: Cursor is in the wrong line when using a WinBar in a Terminal
window.
Solution: Adjust the row number. (Christian Brabandt, closes #2362 )
2018-02-13 21:19:21 +01:00
Bram Moolenaar
ab5e7c3deb
patch 8.0.1515: BufWinEnter event fired when opening hidden terminal
...
Problem: BufWinEnter event fired when opening hidden terminal.
Solution: Do not fire BufWinEnter when the terminal is midden and does not
open a window. (Kenta Sato, closes #2636 )
2018-02-13 14:07:18 +01:00
Bram Moolenaar
4b7e7bed6c
patch 8.0.1499: out-of-memory situation not correctly handled
...
Problem: Out-of-memory situation not correctly handled. (Coverity)
Solution: Check for NULL value.
2018-02-11 14:53:30 +01:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
a15ef4588c
patch 8.0.1484: reduntant conditions
...
Problem: Reduntant conditions.
Solution: Remove them. (Dominique Pelle)
2018-02-09 16:46:00 +01:00
Bram Moolenaar
d317b38a4d
patch 8.0.1477: redraw flicker when moving the mouse outside of terminal window
...
Problem: Redraw flicker when moving the mouse outside of terminal window.
Solution: Instead of updating the cursor color and shape every time leaving
and entering a terminal window, only update when different from
the previously used cursor.
2018-02-08 22:33:31 +01:00
Bram Moolenaar
b50773c6df
patch 8.0.1440: terminal window: some vterm responses are delayed
...
Problem: Terminal window: some vterm responses are delayed.
Solution: After writing input. check if there is output to read. (Ozaki
Kiichi, closes #2594 )
2018-01-30 22:31:19 +01:00
Bram Moolenaar
4aad53c369
patch 8.0.1430: crash when term_start() fails
...
Problem: Crash when term_start() fails.
Solution: Initialize winpty_err.
2018-01-26 21:11:03 +01:00
Bram Moolenaar
ede35bbbd0
patch 8.0.1429: crash when calling term_start() with empty argument
...
Problem: Crash when calling term_start() with empty argument.
Solution: Check for invalid argument. (Yasuhiro Matsomoto, closes #2503 )
Fix memory leak.
2018-01-26 20:05:18 +01:00
Bram Moolenaar
23c1b2b018
patch 8.0.1376: cursor in terminal not always updated
...
Problem: Cursor in terminal not always updated.
Solution: Call gui_mch_flush(). (Ken Takata)
2017-12-05 21:32:33 +01:00
Bram Moolenaar
ce6179c799
patch 8.0.1368: cannot drag status or separator of new terminal window
...
Problem: Cannot drag status line or vertical separator of new terminal
window. (UncleBill)
Solution: Adjust mouse row and column computation. (Yasuhiro Matsumoto,
closes #2410 )
2017-12-05 13:06:16 +01:00
Bram Moolenaar
a7c54cfcf8
patch 8.0.1362: terminal window colors wrong when using Terminal highlighting
...
Problem: Terminal window colors wrong when using Terminal highlighting.
Solution: Set ansi_index when setting the default color. Also cache the
color index for Terminal. (Ozaki Kiichi, closes #2393 )
2017-12-01 21:07:20 +01:00
Bram Moolenaar
76bb7196f5
patch 8.0.1360: the Terminal highlighting doesn't work in a terminal
...
Problem: The Terminal highlighting doesn't work in a terminal. (Ozaki
Kiichi)
Solution: Use the Terminal highlighting when the cterm index is zero.
2017-11-30 22:07:07 +01:00
Bram Moolenaar
46359e198f
patch 8.0.1359: libvterm ANSI colors can not always be recognized
...
Problem: Libvterm ANSI colors can not always be recognized from the RGB
values. The default color is wrong when t_RB is empty.
Solution: Add the ANSI color index to VTermColor.
2017-11-29 22:33:38 +01:00
Bram Moolenaar
52dbb5ea7f
patch 8.0.1330: MS-Windows: job in terminal can't get back to Vim
...
Problem: MS-Windows: job in terminal can't get back to Vim.
Solution: set VIM_SERVERNAME in the environment. (Yasuhiro Matsumoto, closes
#2360 )
2017-11-21 18:11:27 +01:00
Bram Moolenaar
ff5467965e
patch 8.0.1328: trouble when using ":term ++close" with autocmd
...
Problem: Trouble when using ":term ++close" with autocmd. (Gabriel Barta)
Solution: Use aucmd_prepbuf() and aucmd_restbuf() instead of setting curbuf.
(closes #2339 )
2017-11-21 14:47:57 +01:00
Bram Moolenaar
73675fbc48
patch 8.0.1323: mouse events in a terminal window may cause endless loop
...
Problem: Mouse events in a terminal window may cause endless loop.
Solution: Adjust position computation. Don't stuff a mouse event when
coming from normal_cmd().
2017-11-20 21:49:19 +01:00
Bram Moolenaar
e518226713
patch 8.0.1317: accessing freed memory in term_wait()
...
Problem: Accessing freed memory in term_wait(). (Dominique Pelle)
Solution: Check that the buffer still exists.
2017-11-19 15:05:44 +01:00
Bram Moolenaar
51b0f3701e
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
...
Problem: Cannot use 'balloonexpr' in a terminal.
Solution: Add 'balloonevalterm' and add code to handle mouse movements in a
terminal. Initial implementation for Unix with GUI.
2017-11-18 18:52:04 +01:00
Bram Moolenaar
a42ad57e48
patch 8.0.1299: bracketed paste does not work well in terminal window
...
Problem: Bracketed paste does not work well in terminal window.
Solution: Send translated string to job right away. (Ozaki Kiichi, closes
#2341 )
2017-11-16 13:08:04 +01:00
Bram Moolenaar
26d205dcd8
patch 8.0.1277: terminal window CR-NL conversions may cause problems
...
Problem: Terminal window CR-NL conversions may cause problems.
Solution: Avoid most conversions, only fetch the current backspace key value
from the tty. (mostly by Ozaki Kiichi, closes #2278 )
2017-11-09 17:33:11 +01:00
Bram Moolenaar
a3f7e58bf8
patch 8.0.1276: key lost when window closed in exit callback
...
Problem: Typed key is lost when the terminal window is closed in exit
callback. (Gabriel Barta)
Solution: When the current window changes bail out of the wait loop. (closes
#2302 )
2017-11-09 13:21:58 +01:00
Bram Moolenaar
1232624ae5
patch 8.0.1261: program in terminal window gets NL instead of CR
...
Problem: Program in terminal window gets NL instead of CR. (Lifepillar)
Solution: Check the tty setup more often. (closes #1998 )
2017-11-04 20:12:14 +01:00
Bram Moolenaar
ba6febd380
patch 8.0.1240: MS-Windows: term_start() does not support environment
...
Problem: MS-Windows: term_start() does not support environment.
Solution: Implement the environment argument. (Yasuhiro Matsumoto, closes
#2264 )
2017-10-30 21:56:23 +01:00
Bram Moolenaar
6daeef1933
patch 8.0.1203: terminal window mistreats composing characters
...
Problem: Terminal window mistreats composing characters.
Solution: Count composing characters with the base character. (Ozaki Kiichi,
closes #2195 )
2017-10-15 22:56:49 +02:00
Bram Moolenaar
9377df3ecd
patch 8.0.1195: can't build on MS-Windows
...
Problem: Can't build on MS-Windows.
Solution: Adjust #ifdef and add #ifdefs.
2017-10-15 13:22:01 +02:00
Bram Moolenaar
65e4c4f686
patch 8.0.1194: actual fg and bg colors of terminal are unknown
...
Problem: Actual fg and bg colors of terminal are unknown.
Solution: Add t_RF. Store response to t_RB and t_RF, use for terminal.
2017-10-14 23:24:25 +02:00
Bram Moolenaar
54e5dbf58e
patch 8.0.1177: in a terminal window the popup menu is not cleared
...
Problem: In a terminal window the popup menu is not cleared. (Gerry
Agbobada)
Solution: Redraw when SOME_VALID is used instead of NOT_VALID. (closes
#2194 )
2017-10-07 17:35:09 +02:00
Bram Moolenaar
19a3d68b2c
patch 8.0.1173: terminal window is not redrawn after CTRL-L
...
Problem: Terminal window is not redrawn after CTRL-L. (Marcin Szamotulski)
Solution: Redraw the whole terminal when w_redr_type is NOT_VALID.
2017-10-02 21:54:59 +02:00
Bram Moolenaar
3a497e1a41
patch 8.0.1167: Motif: typing in terminal window is slow
...
Problem: Motif: typing in terminal window is slow.
Solution: Do not redraw the whole terminal window but only was was changed.
2017-09-30 20:40:27 +02:00
Bram Moolenaar
a8fc0d3817
patch 8.0.1149: libvterm colors differ from xterm
...
Problem: libvterm colors differ from xterm.
Solution: Use the xterm colors for libvterm.
2017-09-26 13:59:47 +02:00
Bram Moolenaar
53f8174eae
patch 8.0.1135: W_WINCOL() is always the same
...
Problem: W_WINCOL() is always the same.
Solution: Expand the macro.
2017-09-22 14:35:51 +02:00
Bram Moolenaar
8b21de33bb
Missing part of 8.0.1131.
2017-09-22 11:13:52 +02:00
Bram Moolenaar
2e6ab18729
Add back terminal.c
2017-09-20 10:03:07 +02:00
Bram Moolenaar
37c64c78fd
Update runtime files.
2017-09-19 22:06:03 +02:00
Bram Moolenaar
71b2964066
patch 8.0.1126: endless resize when terminal showing in two buffers
...
Problem: Endless resize when terminal showing in two buffers. (Hirohito
Higashi)
Solution: Set a flag to prevent resizing the window.
2017-09-18 21:24:56 +02:00
Bram Moolenaar
1b9645de3c
patch 8.0.1123: cannot define a toolbar for a window
...
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
2017-09-17 23:03:31 +02:00
Bram Moolenaar
69fbc9e1da
patch 8.0.1108: cannot specify mappings for the terminal window
...
Problem: Cannot specify mappings for the terminal window.
Solution: Add the :tmap command and associated code. (Jacob Askeland,
closes #2073 )
2017-09-14 20:37:57 +02:00
Bram Moolenaar
69e8aa7511
patch 8.0.1106: terminal colors wrong on an MS-Windows console
...
Problem: Terminal colors on an MS-Windows console are not matching the
normal colors.
Solution: Use the normal colors for the terminal. (Yasuhiro Matsumoto,
closes #2087 )
2017-09-14 15:55:13 +02:00
Bram Moolenaar
478e3a78c3
patch 8.0.1103: converting cterm color fails for grey ramp
...
Problem: Converting cterm color fails for grey ramp.
Solution: Use index instead of number.
2017-09-14 13:37:00 +02:00
Bram Moolenaar
c71053c611
patch 8.0.1102: terminal window does not use Normal colors
...
Problem: Terminal window does not use Normal colors.
Solution: For the GUI and when 'termguicolors' is enabled, use the actual
foreground and background colors for the terminal. (Yasuhiro
Matsumoto, closes #2067 )
Use the "Terminal" highlight group if defined.
2017-09-14 00:00:44 +02:00
Bram Moolenaar
072412ed45
patch 8.0.1100: stuck in redraw loop when 'lazyredraw' is set
...
Problem: Stuck in redraw loop when 'lazyredraw' is set.
Solution: Don't loop on update_screen() when not redrawing. (Yasuhiro
Matsumoto, closes #2082 )
2017-09-13 22:11:35 +02:00
Bram Moolenaar
49a613f84a
patch 8.0.1097: background color wrong if job changes background color
...
Problem: Background color wrong if job changes background color.
Solution: Get the background color from vterm.
2017-09-11 23:05:44 +02:00
Bram Moolenaar
238d43b328
patch 8.0.1096: terminal window in Normal mode has wrong background
...
Problem: Terminal window in Normal mode has wrong background.
Solution: Store the default background and use it for clearning until the
end of the line. Not for below the last line, since there is no
text there.
2017-09-11 22:00:51 +02:00