:digraphs : check for CTRL-C less often #10376

No need to do this so frequently.
This commit is contained in:
Justin M. Keyes
2019-06-30 02:33:50 +02:00
committed by GitHub
parent 72ae0a6e5e
commit 0480e991d2

View File

@@ -18,6 +18,7 @@
#include "nvim/ex_docmd.h" #include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h" #include "nvim/ex_getln.h"
#include "nvim/getchar.h" #include "nvim/getchar.h"
#include "nvim/misc1.h"
#include "nvim/mbyte.h" #include "nvim/mbyte.h"
#include "nvim/message.h" #include "nvim/message.h"
#include "nvim/memory.h" #include "nvim/memory.h"
@@ -1663,13 +1664,13 @@ void listdigraphs(void)
printdigraph(&tmp); printdigraph(&tmp);
} }
dp++; dp++;
os_breakcheck(); fast_breakcheck();
} }
dp = (digr_T *)user_digraphs.ga_data; dp = (digr_T *)user_digraphs.ga_data;
for (int i = 0; i < user_digraphs.ga_len && !got_int; ++i) { for (int i = 0; i < user_digraphs.ga_len && !got_int; ++i) {
printdigraph(dp); printdigraph(dp);
os_breakcheck(); fast_breakcheck();
dp++; dp++;
} }
} }