mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.0.1570: can't use :popup for a menu in the terminal
Problem: Can't use :popup for a menu in the terminal. (Wei Zhang)
Solution: Make :popup work in the terminal. Also fix that entries were
included that don't work in the current state.
29a2c08d79
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/os_unix.h"
|
||||
#include "nvim/path.h"
|
||||
#include "nvim/popupmnu.h"
|
||||
#include "nvim/quickfix.h"
|
||||
#include "nvim/regexp.h"
|
||||
#include "nvim/screen.h"
|
||||
@@ -7985,6 +7986,11 @@ static void ex_nogui(exarg_T *eap)
|
||||
eap->errmsg = N_("E25: Nvim does not have a built-in GUI");
|
||||
}
|
||||
|
||||
static void ex_popup(exarg_T *eap)
|
||||
{
|
||||
pum_make_popup(eap->arg, eap->forceit);
|
||||
}
|
||||
|
||||
static void ex_swapname(exarg_T *eap)
|
||||
{
|
||||
if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL) {
|
||||
|
Reference in New Issue
Block a user