comparison src/channel.c @ 13150:808625d4b71b v8.0.1449

patch 8.0.1449: slow redrawing with DirectX commit https://github.com/vim/vim/commit/a338adcf222b6a24e26ea5ae6a2ad27f914acb38 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 31 20:51:47 2018 +0100 patch 8.0.1449: slow redrawing with DirectX Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2018 21:00:08 +0100
parents c522585ce88d
children ac42c4b11dbc
comparison
equal deleted inserted replaced
13149:46794b7ab97a 13150:808625d4b71b
2205 ch_log(channel, "redraw"); 2205 ch_log(channel, "redraw");
2206 ea.forceit = *arg != NUL; 2206 ea.forceit = *arg != NUL;
2207 ex_redraw(&ea); 2207 ex_redraw(&ea);
2208 showruler(FALSE); 2208 showruler(FALSE);
2209 setcursor(); 2209 setcursor();
2210 out_flush(); 2210 out_flush_cursor(TRUE, FALSE);
2211 #ifdef FEAT_GUI
2212 if (gui.in_use)
2213 {
2214 gui_update_cursor(TRUE, FALSE);
2215 gui_mch_flush();
2216 }
2217 #endif
2218 } 2211 }
2219 else if (STRCMP(cmd, "expr") == 0 || STRCMP(cmd, "call") == 0) 2212 else if (STRCMP(cmd, "expr") == 0 || STRCMP(cmd, "call") == 0)
2220 { 2213 {
2221 int is_call = cmd[0] == 'c'; 2214 int is_call = cmd[0] == 'c';
2222 int id_idx = is_call ? 3 : 2; 2215 int id_idx = is_call ? 3 : 2;