aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-06-16 16:14:10 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2016-08-29 10:17:31 +0200
commite968d72cae57180921ad9cf24cde74fedc8b03d3 (patch)
tree88df0a694355501d6f18cc96e586c2f00dca074b /src/nvim/ui.c
parent999af47be82ca822d6a70e9e0ba8fe29549fa4a8 (diff)
downloadrneovim-e968d72cae57180921ad9cf24cde74fedc8b03d3.tar.gz
rneovim-e968d72cae57180921ad9cf24cde74fedc8b03d3.tar.bz2
rneovim-e968d72cae57180921ad9cf24cde74fedc8b03d3.zip
api/ui: use ui options instead of one method per feature
Use new nvim_ui_ prefix to avoid breaking change.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 031cdede07..306dd6c43a 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -27,6 +27,7 @@
#include "nvim/os/time.h"
#include "nvim/os/input.h"
#include "nvim/os/signal.h"
+#include "nvim/popupmnu.h"
#include "nvim/screen.h"
#include "nvim/syntax.h"
#include "nvim/window.h"
@@ -166,15 +167,18 @@ void ui_refresh(void)
}
int width = INT_MAX, height = INT_MAX;
+ bool pum_external = true;
for (size_t i = 0; i < ui_count; i++) {
UI *ui = uis[i];
width = ui->width < width ? ui->width : width;
height = ui->height < height ? ui->height : height;
+ pum_external &= ui->pum_external;
}
row = col = 0;
screen_resize(width, height);
+ pum_set_external(pum_external);
}
void ui_resize(int new_width, int new_height)