Skip to content

Commit

Permalink
修复选词插件使用方括号,导致翻页配置失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kimufly committed Mar 15, 2021
1 parent 71ac01b commit 986dafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/select_character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ local function select_character(key, env)
local context = engine.context
local commit_text = context:get_commit_text()
local config = engine.schema.config
local first_key = config:get_string('key_binder/select_first_character') or 'bracketleft'
local last_key = config:get_string('key_binder/select_last_character') or 'bracketright'
local first_key = config:get_string('key_binder/select_first_character')
local last_key = config:get_string('key_binder/select_last_character')

if (key:repr() == first_key and commit_text ~= "") then
engine:commit_text(first_character(commit_text))
Expand Down

0 comments on commit 986dafd

Please sign in to comment.