summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-17 22:28:22 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-17 22:28:22 +0100
commit1ac56c2d11da5ffa44db23e1fd0c533d02ab2f66 (patch)
tree6eba7bed7de78a1efe65c23aeec28b1f93b3a2e5 /src/gui.c
parent3020ccb113d397ddf474001dc00a1916ad7abdee (diff)
patch 8.1.0770: inconsistent use of ELAPSED_FUNCv8.1.0770
Problem: Inconsistent use of ELAPSED_FUNC. Solution: Consistently use ELAPSED_FUNC. Also turn ELAPSED_TYPE into a typedef. (Ozaki Kiichi, closes #3815)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index cf1cee67ff..8677787622 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -2951,9 +2951,9 @@ gui_wait_for_chars_or_timer(long wtime)
int
gui_wait_for_chars(long wtime, int tb_change_cnt)
{
- int retval;
+ int retval;
#if defined(ELAPSED_FUNC)
- ELAPSED_TYPE start_tv;
+ elapsed_T start_tv;
#endif
#ifdef FEAT_MENU
@@ -3002,7 +3002,7 @@ gui_wait_for_chars(long wtime, int tb_change_cnt)
if (gui_wait_for_chars_or_timer(p_ut) == OK)
retval = OK;
else if (trigger_cursorhold()
-#ifdef ELAPSED_FUNC
+#if defined(ELAPSED_FUNC)
&& ELAPSED_FUNC(start_tv) >= p_ut
#endif
&& typebuf.tb_change_cnt == tb_change_cnt)