Skip to content

Commit e1c3b9e

Browse files
committed
[lint addon] Provide a way to show tooltips only on the gutter
Closes #4308
1 parent 7484049 commit e1c3b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/lint/lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
var state = cm.state.lint = new LintState(cm, parseOptions(cm, val), hasLintGutter);
227227
if (state.options.lintOnChange !== false)
228228
cm.on("change", onChange);
229-
if (state.options.tooltips != false)
229+
if (state.options.tooltips != false && state.options.tooltips != "gutter")
230230
CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
231231

232232
startLinting(cm);

0 commit comments

Comments
 (0)