Skip to content

Commit 4d0cfbe

Browse files
committed
Fix issue with highlights updating when Tools show/hide
Signed-off-by: Grant Skinner <[email protected]>
1 parent e9a3647 commit 4d0cfbe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

js/views/DocView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,8 @@ p.showTools = function (value) {
334334
this.deferUpdate();
335335
this.resize();
336336

337-
// TODO: is this needed? Doesn't seem to be:
338-
//this.toolsCM.refresh();
339-
//this.sourceCM.refresh();
337+
// this ensures the Text highlights update correctly when the Tools show / hide:
338+
this.sourceCM.refresh();
340339
};
341340

342341
p.setTool = function(tool) {

0 commit comments

Comments
 (0)