Mercurial > vim
comparison src/drawline.c @ 19265:ce8c47ed54e5 v8.2.0191
patch 8.2.0191: cannot put a terminal in a popup window
Commit: https://github.com/vim/vim/commit/219c7d063823498be22aae46dd024d77b5fb2a58
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 1 21:57:29 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Feb 2020 22:00:04 +0100 |
parents | d5b793803236 |
children | f872daa2031b |
comparison
equal
deleted
inserted
replaced
19264:489e4c8101ba | 19265:ce8c47ed54e5 |
---|---|
489 #ifdef FEAT_TERMINAL | 489 #ifdef FEAT_TERMINAL |
490 if (term_show_buffer(wp->w_buffer)) | 490 if (term_show_buffer(wp->w_buffer)) |
491 { | 491 { |
492 extra_check = TRUE; | 492 extra_check = TRUE; |
493 get_term_attr = TRUE; | 493 get_term_attr = TRUE; |
494 win_attr = term_get_attr(wp->w_buffer, lnum, -1); | 494 win_attr = term_get_attr(wp, lnum, -1); |
495 } | 495 } |
496 #endif | 496 #endif |
497 | 497 |
498 #ifdef FEAT_SPELL | 498 #ifdef FEAT_SPELL |
499 if (wp->w_p_spell | 499 if (wp->w_p_spell |
1417 if (extra_check && n_extra == 0) | 1417 if (extra_check && n_extra == 0) |
1418 { | 1418 { |
1419 syntax_attr = 0; | 1419 syntax_attr = 0; |
1420 # ifdef FEAT_TERMINAL | 1420 # ifdef FEAT_TERMINAL |
1421 if (get_term_attr) | 1421 if (get_term_attr) |
1422 syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol); | 1422 syntax_attr = term_get_attr(wp, lnum, vcol); |
1423 # endif | 1423 # endif |
1424 // Get syntax attribute. | 1424 // Get syntax attribute. |
1425 if (has_syntax) | 1425 if (has_syntax) |
1426 { | 1426 { |
1427 // Get the syntax attribute for the character. If there | 1427 // Get the syntax attribute for the character. If there |