We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a52e98 commit 66a88bcCopy full SHA for 66a88bc
TeXmacs/progs/kernel/gui/menu-widget.scm
@@ -1603,7 +1603,8 @@
1603
(show-auxiliary-widget #f)
1604
(let ((actions (ahash-ref widget-type->action (cadr state))))
1605
(when (and (pair? actions) (pair? (cdr actions)))
1606
- ((cadr actions)))))))
+ (with close-action (second actions)
1607
+ (close-action)))))))
1608
1609
;; 刷新辅助窗口
1610
(tm-define (refresh-auxiliary-widget)
@@ -1616,7 +1617,8 @@
1616
1617
(let* ((widget-type (cadr state))
1618
(action-list (ahash-ref widget-type->action widget-type)))
1619
(if (and action-list (pair? action-list))
- ((car action-list))
1620
+ (with open-action (car action-list)
1621
+ (open-action))
1622
(show-auxiliary-widget #f))))))) ;; 列表为空或未找到,隐藏窗口
1623
1624
(tm-define (auxiliary-widget menu-promise cmd name . opts)
0 commit comments