patch 8.1.2313: debugging where a delay comes from is not easy
Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
diff --git a/src/ui.c b/src/ui.c
index 2d33f7b..cde97c3 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -532,6 +532,9 @@
void
ui_delay(long msec, int ignoreinput)
{
+#ifdef FEAT_JOB_CHANNEL
+ ch_log(NULL, "ui_delay(%ld)", msec);
+#endif
#ifdef FEAT_GUI
if (gui.in_use && !ignoreinput)
gui_wait_for_chars(msec, typebuf.tb_change_cnt);