Skip to content

Commit 8978316

Browse files
committed
Fixed wrong type argument in drupal-convert-line-ending.
Fixes #53 by @dhaley.
1 parent bcf7a8b commit 8978316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drupal-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ According to https://drupal.org/coding-standards#indenting you
458458
should save your files with unix style end of line."
459459
(when (and drupal-mode
460460
drupal-convert-line-ending
461-
(/= (coding-system-eol-type buffer-file-coding-system) 0))
461+
(not (equal (coding-system-eol-type (or coding-system-for-write buffer-file-coding-system)) 0)))
462462
(if (or (eq drupal-convert-line-ending t)
463463
(y-or-n-p "Convert to unix style line endings?"))
464464
(progn

0 commit comments

Comments
 (0)