Mercurial > vim
comparison src/ex_cmds.c @ 20561:18c52f380193 v8.2.0834
patch 8.2.0834: :drop command in terminal popup causes problems
Commit: https://github.com/vim/vim/commit/3f65c66df95445ef84f98de007c9b70ce23f54a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 27 23:15:16 2020 +0200
patch 8.2.0834: :drop command in terminal popup causes problems
Problem: :drop command in terminal popup causes problems.
Solution: Check for using a popup window. (closes https://github.com/vim/vim/issues/6151)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 27 May 2020 23:30:03 +0200 |
parents | 42ab4d40e78f |
children | d571231175b4 |
comparison
equal
deleted
inserted
replaced
20560:4cb09af7ab7d | 20561:18c52f380193 |
---|---|
6347 int split = FALSE; | 6347 int split = FALSE; |
6348 win_T *wp; | 6348 win_T *wp; |
6349 buf_T *buf; | 6349 buf_T *buf; |
6350 tabpage_T *tp; | 6350 tabpage_T *tp; |
6351 | 6351 |
6352 if (ERROR_IF_POPUP_WINDOW || ERROR_IF_TERM_POPUP_WINDOW) | |
6353 return; | |
6354 | |
6352 /* | 6355 /* |
6353 * Check if the first argument is already being edited in a window. If | 6356 * Check if the first argument is already being edited in a window. If |
6354 * so, jump to that window. | 6357 * so, jump to that window. |
6355 * We would actually need to check all arguments, but that's complicated | 6358 * We would actually need to check all arguments, but that's complicated |
6356 * and mostly only one file is dropped. | 6359 * and mostly only one file is dropped. |