This commit is contained in:
Kovid Goyal
2023-03-23 10:28:56 +05:30
parent f8c83519fe
commit 29a896f9d8
2 changed files with 2 additions and 2 deletions

View File

@@ -414,7 +414,7 @@ func (self *Handler) scroll_to_next_match(backwards, include_current_match bool)
delta *= -1
}
pos := self.scroll_pos
if self.logical_lines.IncrementScrollPosBy(&pos, offset) == 0 {
if offset != 0 && self.logical_lines.IncrementScrollPosBy(&pos, offset) == 0 {
return false
}
for {