vocabbuilder.koplugin: fix selecting context bug (#12938)

Missed one line in #12917.

Fixes #12916
This commit is contained in:
weijiuqiao
2024-12-25 16:28:00 +08:00
committed by GitHub
parent 15f5dbef83
commit 2298ef76f0

View File

@@ -1209,7 +1209,6 @@ function KoptInterface:getSelectedWordContext(word, nb_words, pos)
end
end
end
if boxes[i][j].word ~= word then return end
local prev_text = get_prev_text(boxes, i, j, nb_words)
local next_text = get_next_text(boxes, i_end, j_end, nb_words)
return prev_text, next_text