summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-14 15:53:20 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-14 15:53:20 -0400
commit624399da9992b92f59daef4a79575c338e989e3e (patch)
treee45db1f1ab1a7ec5fc20617c07a253d286518ba0 /find.c
parent72592df32eddeb11ebdbb61a1c2437d82eb2f73b (diff)
fix find menu scroll bug, for real this time
Diffstat (limited to 'find.c')
-rw-r--r--find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/find.c b/find.c
index 0587b61..d4a24c4 100644
--- a/find.c
+++ b/find.c
@@ -155,7 +155,7 @@ static void find_update(Ted *ted, bool force) {
find_buffer->modified = false;
if (best_scroll_candidate.line != U32_MAX) // scroll to first match (if there is one)
buffer_scroll_to_pos(buffer, best_scroll_candidate);
- } else {
+ } else if (find_buffer->modified) {
buffer_scroll_to_cursor(buffer);
}
}