Apply suggestion from @ermshiperete

Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
This commit is contained in:
Marc Durdin 2026-09-30 06:21:10 +02:00 • committed by GitHub
parent 27d354cf10
commit d6042f989e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.