Skip to content

Commit b23090e

Browse files
authored
Merge pull request #61 from editor-code-assistant/fix-ediff-diff-for-new-files
Fix ediff unknown terminal type error with plain window setup
2 parents a8c2193 + dbb104e commit b23090e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eca-diff.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ system (it ignores those popup rules for the generated ediff buffers)."
185185

186186
;; Start Ediff with error handling
187187
(condition-case err
188-
(ediff-buffers buf-orig buf-new)
188+
(let ((ediff-window-setup-function
189+
(if (daemonp)
190+
'ediff-setup-windows-plain
191+
ediff-window-setup-function)))
192+
(ediff-buffers buf-orig buf-new))
189193
(error
190194
;; On error, remove hooks and restore windows
191195
(remove-hook 'ediff-quit-hook cleanup-fn)

0 commit comments

Comments
 (0)