diff --git a/gulpfile.js b/gulpfile.js index 8df1468a..7353a0f7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -73,10 +73,8 @@ gulp.task('tslint', ['fix-whitespace'], function() { return merge(srcs, tests); }); -gulp.task('compile', shell.task([ - 'node ./node_modules/vscode/bin/compile -p ./', -])); - +gulp.task('compile', shell.task(['npm run vscode:prepublish'])); +gulp.task('watch', shell.task(['npm run compile'])); gulp.task('init', ['typings']); gulp.task('default', ['tslint', 'compile']); gulp.task('release', ['default', 'patch']); diff --git a/src/actions/actions.ts b/src/actions/actions.ts index ad59fb76..3522dca2 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -573,6 +573,14 @@ class CommandHash extends BaseCommand { vimState.searchState = new SearchState(SearchDirection.Backward, vimState.cursorPosition, currentWord); + // hack start + // temporary fix for https://github.com/VSCodeVim/Vim/issues/569 + let text = TextEditor.getText(new vscode.Range(vimState.cursorPosition, vimState.cursorPosition.getRight())); + if (text === " ") { + return vimState; + } + // hack end + do { // use getWordLeft() on position to start at the beginning of the word. // this ensures that any matches happen ounside of the word currently selected,