Remove visible marks and fix bug.

This commit is contained in:
johnfn 2016-07-04 08:12:26 -07:00
parent 7628e309a6
commit 713f30a1a8
2 changed files with 8 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export async function getAndUpdateModeHandler(): Promise<ModeHandler> {
await handler.updateView(handler.vimState);
}
if (oldHandler.vimState.focusChanged) {
if (oldHandler && oldHandler.vimState.focusChanged) {
oldHandler.vimState.focusChanged = false;
handler.vimState.focusChanged = true;
}

View File

@ -866,10 +866,17 @@ export class ModeHandler implements vscode.Disposable {
rangesToDraw.push(new vscode.Range(stop, stop.getRight()));
}
// Draw marks
// I should re-enable this with a config setting at some point
/*
for (const mark of this.vimState.historyTracker.getMarks()) {
rangesToDraw.push(new vscode.Range(mark.position, mark.position.getRight()));
}
*/
// Draw search highlight
const searchState = vimState.searchState;