Skip to content

Commit 8f51f13

Browse files
committed
Update codeit-autocomplete.js
1 parent de006c3 commit 8f51f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/codeit-autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function getQuery(cursor) {
342342

343343
let query = '';
344344
//let i = cursor.startOffset;
345-
let i = text.length - 1;
345+
let i = text.length;
346346

347347
while (i >= 0) {
348348

@@ -362,7 +362,7 @@ function getQuery(cursor) {
362362

363363
}
364364

365-
return [query, i + 1];
365+
return [query, i];
366366

367367
}
368368

0 commit comments

Comments
 (0)