: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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