Skip to content

Commit

Permalink
Do not assume that the editor must exist in this location
Browse files Browse the repository at this point in the history
  • Loading branch information
corasaurus-hex committed Mar 2, 2022
1 parent c2ecb0d commit 7d58510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/highlight/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isArray } from 'util';
import * as docMirror from '../../doc-mirror/index';
import { Token, validPair } from '../../cursor-doc/clojure-lexer';
import { LispTokenCursor } from '../../cursor-doc/token-cursor';
import { mustGetActiveTextEditor } from '../../utilities';
import { getActiveTextEditor, mustGetActiveTextEditor } from '../../utilities';

type StackItem = {
char: string;
Expand Down Expand Up @@ -602,7 +602,7 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.onDidChangeTextEditorSelection(
(event) => {
if (
event.textEditor === mustGetActiveTextEditor() &&
event.textEditor === getActiveTextEditor() &&
is_clojure(event.textEditor)
) {
if (lastHighlightedEditor !== event.textEditor) {
Expand Down

0 comments on commit 7d58510

Please sign in to comment.