mirror of
https://codeberg.org/cage/tinmop/
synced 2025-01-01 00:57:20 +01:00
- do not repeat a search if no search has been performed before.
This commit is contained in:
parent
7e378a3db5
commit
62bd4ac19f
@ -417,13 +417,17 @@
|
||||
|
||||
(defclass search-event (program-event) ())
|
||||
|
||||
(defun search-event-p (a)
|
||||
(typep a 'search-event))
|
||||
|
||||
(defmethod process-event :before ((object search-event))
|
||||
(setf *search-next-saved-event* object))
|
||||
|
||||
(defclass search-next-event (program-event) ())
|
||||
|
||||
(defmethod process-event ((object search-next-event))
|
||||
(push-event *search-next-saved-event*))
|
||||
(when (search-event-p *search-next-saved-event*)
|
||||
(push-event *search-next-saved-event*)))
|
||||
|
||||
(defclass search-regex-message-content-event (search-event) ())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user