mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
close popup if window exists
This commit is contained in:
parent
d3842c8e0d
commit
3b309036b6
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,10 @@
|
|||
"Open a new text editor"
|
||||
(let ((win (window-to-top-by-title obj open-file)))
|
||||
(when win
|
||||
(let ((pop (connection-data-item obj "clog-popup")))
|
||||
(when pop
|
||||
(close-window pop)
|
||||
(window-focus win)))
|
||||
(when regex
|
||||
(js-execute win (format nil "~A.find('~A',{caseSensitive:false,regExp:true})"
|
||||
(clog-ace::js-ace (window-param win)) regex)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue