mirror of https://codeberg.org/cage/tinmop/
- fixed regression: searching in the message window does not get stuck at the first occurence.
This commit is contained in:
parent
c2f3f155aa
commit
68c250e03c
|
@ -480,11 +480,17 @@
|
|||
|
||||
(defmethod search-regex ((object message-window) regex)
|
||||
(with-accessors ((row-selected-index row-selected-index)) object
|
||||
(let ((line-found (rows-position-if object
|
||||
(let* ((selected-row (selected-row object))
|
||||
(selected-text (normal-text selected-row))
|
||||
(actual-row-starting (if (scan regex
|
||||
(tui-string->chars-string selected-text))
|
||||
(1+ row-selected-index)
|
||||
row-selected-index))
|
||||
(line-found (rows-position-if object
|
||||
(lambda (a)
|
||||
(scan regex
|
||||
(tui-string->chars-string (normal-text a))))
|
||||
:start (clamp row-selected-index
|
||||
:start (clamp actual-row-starting
|
||||
0
|
||||
(rows-length object))))
|
||||
(replacements-strings ()))
|
||||
|
|
Loading…
Reference in New Issue