Mercurial > vim
comparison src/mouse.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 | 49b78d6465e5 |
children | 22f0dda71638 |
comparison
equal
deleted
inserted
replaced
19264:489e4c8101ba | 19265:ce8c47ed54e5 |
---|---|
1733 row = 0; | 1733 row = 0; |
1734 col += wp->w_wincol; | 1734 col += wp->w_wincol; |
1735 wp = curwin; | 1735 wp = curwin; |
1736 # endif | 1736 # endif |
1737 } | 1737 } |
1738 #endif | |
1739 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) | |
1740 if (popup_is_popup(curwin) && curbuf->b_term != NULL) | |
1741 // terminal in popup window: don't jump to another window | |
1742 return IN_OTHER_WIN; | |
1738 #endif | 1743 #endif |
1739 // Only change window focus when not clicking on or dragging the | 1744 // Only change window focus when not clicking on or dragging the |
1740 // status line. Do change focus when releasing the mouse button | 1745 // status line. Do change focus when releasing the mouse button |
1741 // (MOUSE_FOCUS was set above if we dragged first). | 1746 // (MOUSE_FOCUS was set above if we dragged first). |
1742 if (dragwin == NULL || (flags & MOUSE_RELEASED)) | 1747 if (dragwin == NULL || (flags & MOUSE_RELEASED)) |