comparison src/gui.c @ 12457:dfb8254aa735 v8.0.1108

patch 8.0.1108: cannot specify mappings for the terminal window commit https://github.com/vim/vim/commit/69fbc9e1dab176f345719436cd89d854df0a2abd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 14 20:37:57 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Sep 2017 20:45:05 +0200
parents 2a8890b80923
children 68d7bc045dbe
comparison
equal deleted inserted replaced
12456:bc590831aac5 12457:dfb8254aa735
1099 /* 1099 /*
1100 * How the cursor is drawn depends on the current mode. 1100 * How the cursor is drawn depends on the current mode.
1101 * When in a terminal window use the shape/color specified there. 1101 * When in a terminal window use the shape/color specified there.
1102 */ 1102 */
1103 #ifdef FEAT_TERMINAL 1103 #ifdef FEAT_TERMINAL
1104 if (use_terminal_cursor()) 1104 if (terminal_is_active())
1105 shape = term_get_cursor_shape(&shape_fg, &shape_bg); 1105 shape = term_get_cursor_shape(&shape_fg, &shape_bg);
1106 else 1106 else
1107 #endif 1107 #endif
1108 shape = &shape_table[get_shape_idx(FALSE)]; 1108 shape = &shape_table[get_shape_idx(FALSE)];
1109 if (State & LANGMAP) 1109 if (State & LANGMAP)