Mercurial > vim
comparison src/beval.c @ 17310:1b0b90f1d95e v8.1.1654
patch 8.1.1654: GUI: screen updates from 'balloonexpr' are not displayed
commit https://github.com/vim/vim/commit/8a7383b6d28be02413cf115d4b8ed1b44d60dd9f
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 8 22:23:33 2019 +0200
patch 8.1.1654: GUI: screen updates from 'balloonexpr' are not displayed
Problem: GUI: screen updates from 'balloonexpr' are not displayed.
Solution: Update the screen if needed. Also avoid the cursor being
displayed in the wrong position.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 08 Jul 2019 22:30:04 +0200 |
parents | e0d727872758 |
children | 8813e1626e0a |
comparison
equal
deleted
inserted
replaced
17309:bd871e780f34 | 17310:1b0b90f1d95e |
---|---|
292 --sandbox; | 292 --sandbox; |
293 --textlock; | 293 --textlock; |
294 | 294 |
295 set_vim_var_string(VV_BEVAL_TEXT, NULL, -1); | 295 set_vim_var_string(VV_BEVAL_TEXT, NULL, -1); |
296 if (result != NULL && result[0] != NUL) | 296 if (result != NULL && result[0] != NUL) |
297 { | |
298 post_balloon(beval, result, NULL); | 297 post_balloon(beval, result, NULL); |
299 recursive = FALSE; | 298 |
300 return; | 299 # ifdef FEAT_GUI |
301 } | 300 // The 'balloonexpr' evaluation may show something on the screen |
301 // that requires a screen update. | |
302 if (gui.in_use && must_redraw) | |
303 redraw_after_callback(FALSE); | |
304 # endif | |
305 | |
306 recursive = FALSE; | |
307 return; | |
302 } | 308 } |
303 } | 309 } |
304 #endif | 310 #endif |
305 #ifdef FEAT_NETBEANS_INTG | 311 #ifdef FEAT_NETBEANS_INTG |
306 if (bevalServers & BEVAL_NETBEANS) | 312 if (bevalServers & BEVAL_NETBEANS) |