Skip to content

Commit d1992f7

Browse files
committed
Fixes #102 and #120 - sets editor autoHeight to false
1 parent 48b8023 commit d1992f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/split-diff.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ module.exports = SplitDiff =
352352

353353
# auto open editor panes so we have two to diff with
354354
if editor1 == null
355-
editor1 = atom.workspace.buildTextEditor()
355+
editor1 = atom.workspace.buildTextEditor({autoHeight: false})
356356
@wasEditor1Created = true
357357
# add first editor to the first pane
358358
panes[0].addItem(editor1)
359359
panes[0].activateItem(editor1)
360360
if editor2 == null
361-
editor2 = atom.workspace.buildTextEditor()
361+
editor2 = atom.workspace.buildTextEditor({autoHeight: false})
362362
@wasEditor2Created = true
363363
editor2.setGrammar(editor1.getGrammar())
364364
rightPaneIndex = panes.indexOf(atom.workspace.paneForItem(editor1)) + 1

0 commit comments

Comments
 (0)