A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/c6640d0d700f977913606277418be546404d5fd7 below:

handle resize events · neovim/neovim@c6640d0 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+17

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+17

-1

lines changed Original file line number Diff line number Diff line change

@@ -12,6 +12,7 @@

12 12

#include "nvim/charset.h"

13 13

#include "nvim/cursor.h"

14 14

#include "nvim/cursor_shape.h"

15 +

#include "nvim/msgpack_rpc/channel.h"

15 16

#include "nvim/diff.h"

16 17

#include "nvim/event/loop.h"

17 18

#include "nvim/ex_cmds2.h"

@@ -224,7 +225,21 @@ void ui_refresh(void)

224 225 225 226

int save_p_lz = p_lz;

226 227

p_lz = false; // convince redrawing() to return true ...

227 -

screen_resize(width, height);

228 +

if (!ui_client_channel_id) {

229 +

screen_resize(width, height);

230 +

} else {

231 +

Array args = ARRAY_DICT_INIT;

232 +

Error err = ERROR_INIT;

233 +

ADD(args, INTEGER_OBJ((int)width));

234 +

ADD(args, INTEGER_OBJ((int)height));

235 +

rpc_send_call(ui_client_channel_id, "nvim_ui_try_resize", args, &err);

236 + 237 +

if (ERROR_SET(&err)) {

238 +

ELOG("ui_client resize: %s", err.msg);

239 +

}

240 +

api_clear_error(&err);

241 +

}

242 + 228 243

p_lz = save_p_lz;

229 244 230 245

if (ext_widgets[kUIMessages]) {

Original file line number Diff line number Diff line change

@@ -92,6 +92,7 @@ void ui_client_execute(uint64_t chan)

92 92

{

93 93

while (true) {

94 94

loop_poll_events(&main_loop, -1);

95 +

multiqueue_process_events(resize_events);

95 96

}

96 97 97 98

getout(0);

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4