mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-12 00:47:29 +00:00
Apply suggestion from @ermshiperete
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
This commit is contained in:
parent
27d354cf10
commit
d6042f989e
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ function scrubUnpairedSurrogates(S) {
|
|||
};
|
||||
|
||||
var getTokenAtCursor = function () {
|
||||
let txt = scrubUnpairedSurrogates(editor.getModel().getValueInRange(editor.getSelection()));
|
||||
const txt = scrubUnpairedSurrogates(editor.getModel().getValueInRange(editor.getSelection()));
|
||||
if (txt != '') {
|
||||
// We'll always return the first 100 characters of the selection and not
|
||||
// do any manipulation here.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue