aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-07-16 12:46:07 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-07-16 12:46:07 -0400
commit0412c17a6566a3cc5d324773abcf6e8a1ad40bc6 (patch)
tree1b8beaf1d24f394efd0b6e0322d1efbb8515cf6f /src/nvim/screen.c
parente1075ffff94fe0ddc9eb90980ad798e68c090fc6 (diff)
parent6d0f9417ec2e9dec9666fa9c7a9b5b890f25d36a (diff)
downloadrneovim-0412c17a6566a3cc5d324773abcf6e8a1ad40bc6.tar.gz
rneovim-0412c17a6566a3cc5d324773abcf6e8a1ad40bc6.tar.bz2
rneovim-0412c17a6566a3cc5d324773abcf6e8a1ad40bc6.zip
Merge pull request #839 from aktau/platform-abstract-time-fn
viml: impl profiling on top of uv_hrtime()
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 4c4df51eb2..0d0d068b36 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -5441,7 +5441,7 @@ static void start_search_hl(void)
last_pat_prog(&search_hl.rm);
search_hl.attr = hl_attr(HLF_L);
/* Set the time limit to 'redrawtime'. */
- profile_setlimit(p_rdt, &search_hl.tm);
+ search_hl.tm = profile_setlimit(p_rdt);
}
}
@@ -5476,7 +5476,7 @@ static void init_search_hl(win_T *wp)
cur->hl.lnum = 0;
cur->hl.first_lnum = 0;
/* Set the time limit to 'redrawtime'. */
- profile_setlimit(p_rdt, &(cur->hl.tm));
+ cur->hl.tm = profile_setlimit(p_rdt);
cur = cur->next;
}
search_hl.buf = wp->w_buffer;
@@ -5578,7 +5578,7 @@ next_search_hl (
called_emsg = FALSE;
for (;; ) {
/* Stop searching after passing the time limit. */
- if (profile_passed_limit(&(shl->tm))) {
+ if (profile_passed_limit(shl->tm)) {
shl->lnum = 0; /* no match found in time */
break;
}