mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
vocabbuilder.koplugin: fix selecting context bug (#12938)
Missed one line in #12917. Fixes #12916
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user