Skip to content

Commit c23ca6d

Browse files
committed
fix: get word before cursor doesn't break at tab spacing
1 parent ef3fbcc commit c23ca6d

File tree

1 file changed

+1
-1
lines changed
  • src/extensionsIntegrated/CustomSnippets/src

1 file changed

+1
-1
lines changed

src/extensionsIntegrated/CustomSnippets/src/driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ define(function (require, exports, module) {
124124
const pos = editor.getCursorPos();
125125
let word = ""; // this will store the actual word before the cursor
126126
let i = pos.ch - 1; // index of the char right before the cursor
127-
const breakWordAt = ["", " "]; // we need to break the loop when we encounter this char's
127+
const breakWordAt = ["", " ", "\t"]; // we need to break the loop when we encounter this char's
128128

129129
while (i >= 0) {
130130
const char = editor.getCharacterAtPosition({ line: pos.line, ch: i });

0 commit comments

Comments
 (0)