summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-06-05 07:44:43 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-06-05 07:44:43 +0000
commitd7d5164eadc14941b1f3bba1c6fb679bb119ade6 (patch)
treeffbacc2e38b5917d76e016682cb7e868dbe0aaa2 /usr.bin/tmux
parente3cc2ec00df34a3693cf153f1ddd8b26ca2f9a05 (diff)
Now that we mostly only search visible text, the rate limit on repeating
search does not seem to be necessary, remove it for the moment.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/window-copy.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index 9e0dfce9e0b..2e5552e47ed 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.297 2020/06/04 21:40:27 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.298 2020/06/05 07:44:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -266,7 +266,6 @@ struct window_copy_mode_data {
u_int my;
int showmark;
- uint64_t searchtime;
int searchtype;
int searchregex;
char *searchstr;
@@ -282,7 +281,6 @@ struct window_copy_mode_data {
int timeout; /* search has timed out */
#define WINDOW_COPY_SEARCH_TIMEOUT 10000
#define WINDOW_COPY_SEARCH_ALL_TIMEOUT 200
-#define WINDOW_COPY_SEARCH_REPEAT 50
int jumptype;
char jumpchar;
@@ -1662,10 +1660,6 @@ window_copy_cmd_search_again(struct window_copy_cmd_state *cs)
struct window_copy_mode_data *data = wme->data;
u_int np = wme->prefix;
- if (data->searchtime != 0 &&
- get_timer() - data->searchtime < WINDOW_COPY_SEARCH_REPEAT)
- return (WINDOW_COPY_CMD_NOTHING);
-
if (data->searchtype == WINDOW_COPY_SEARCHUP) {
for (; np != 0; np--)
window_copy_search_up(wme, data->searchregex);
@@ -1673,7 +1667,6 @@ window_copy_cmd_search_again(struct window_copy_cmd_state *cs)
for (; np != 0; np--)
window_copy_search_down(wme, data->searchregex);
}
- data->searchtime = get_timer();
return (WINDOW_COPY_CMD_NOTHING);
}
@@ -1684,10 +1677,6 @@ window_copy_cmd_search_reverse(struct window_copy_cmd_state *cs)
struct window_copy_mode_data *data = wme->data;
u_int np = wme->prefix;
- if (data->searchtime != 0 &&
- get_timer() - data->searchtime < WINDOW_COPY_SEARCH_REPEAT)
- return (WINDOW_COPY_CMD_NOTHING);
-
if (data->searchtype == WINDOW_COPY_SEARCHUP) {
for (; np != 0; np--)
window_copy_search_down(wme, data->searchregex);
@@ -1695,7 +1684,6 @@ window_copy_cmd_search_reverse(struct window_copy_cmd_state *cs)
for (; np != 0; np--)
window_copy_search_up(wme, data->searchregex);
}
- data->searchtime = get_timer();
return (WINDOW_COPY_CMD_NOTHING);
}