mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-17 08:10:36 +01:00
- [GUI] fixed checkbutton for case matching search in gemntext.
This commit is contained in:
parent
be04ddc99c
commit
53a6a6e9ab
@ -54,14 +54,15 @@
|
|||||||
(declare (ignore e))
|
(declare (ignore e))
|
||||||
(loop for match in (matches frame) do
|
(loop for match in (matches frame) do
|
||||||
(gui:tag-delete gemtext-widget (gui:match-tag-name match)))
|
(gui:tag-delete gemtext-widget (gui:match-tag-name match)))
|
||||||
(let ((tags (gui:search-all-text gemtext-widget (gui:text (entry frame))
|
(let ((tags (gui:search-all-text gemtext-widget
|
||||||
:case-insensitive (gui:value case-sensitive-checkbox))))
|
(gui:text (entry frame))
|
||||||
|
:case-insensitive
|
||||||
|
(not (gui:value case-sensitive-checkbox)))))
|
||||||
(setf (matches frame) (nreverse tags)))
|
(setf (matches frame) (nreverse tags)))
|
||||||
(loop for match in (matches frame) do
|
(loop for match in (matches frame) do
|
||||||
(gui:tag-configure gemtext-widget
|
(gui:tag-configure gemtext-widget
|
||||||
(gui:match-tag-name match)
|
(gui:match-tag-name match)
|
||||||
:background (gui:cget gemtext-widget
|
:background (gui:cget gemtext-widget :highlightbackground)))))
|
||||||
:highlightbackground)))))
|
|
||||||
(setf (gui:command (button-next frame))
|
(setf (gui:command (button-next frame))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when (matches frame)
|
(when (matches frame)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user