Skip to content

Commit 4d67713

Browse files
authored
Merge pull request #238 from codeitcodes/autocomplete
2 parents dcd1740 + c33166e commit 4d67713

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/plugins/codeit-autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ function getQuery(cursor) {
348348

349349
//const text = cursor.startContainer.textContent;
350350
const text = cd.beforeCursor();
351+
const text1 = cd.afterCursor();
352+
353+
if (!text1.startsWith('\n')) return ['', true];
351354

352355
let query = '';
353356

0 commit comments

Comments
 (0)