Skip to content

Commit 2d031f7

Browse files
committed
fix(org-mode): void-function fcitx-deactivate error
These snippets were blindly calling functions that may not be available to the user. Fix: #81
1 parent 0a172f9 commit 2d031f7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

org-mode/chinese_dollar

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# -*- mode: snippet -*-
22
# name: Chinese$
3-
# uuid: ¥¥
43
# key: ¥¥
5-
# expand-env: ((yas-wrap-around-region (fcitx--deactivate)) (yas-after-exit-snippet-hook (lambda () (fcitx--activate))))
6-
# condition: t
4+
# uuid: chinese_dollar
5+
# expand-env: ((yas-wrap-around-region (ignore-errors (fcitx--deactivate))) (yas-after-exit-snippet-hook (lambda () (ignore-errors (fcitx--activate)))))
76
# --
87
\$$1\$ $0

org-mode/chinese_link

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# -*- mode: snippet -*-
22
# name: chinese【
3-
# uuid: 【【
43
# key: 【【
5-
# expand-env: ((yas-wrap-around-region (fcitx--deactivate)) (yas-after-exit-snippet-hook (lambda () (fcitx--activate))))
6-
# condition: t
4+
# uuid: chinese_link
5+
# expand-env: ((yas-wrap-around-region (ignore-errors (fcitx--deactivate))) (yas-after-exit-snippet-hook (lambda () (ignore-errors (fcitx--activate)))))
76
# --
87
[[$0]]

0 commit comments

Comments
 (0)