Skip to content

Commit

Permalink
Fix delete-backward-char in haskell-indentation (fixes #211)
Browse files Browse the repository at this point in the history
The problem in #211 is that while delete-char should only delete the
region if delete-selection-mode is enabled, delete-backward-char
deletes if the region is active and delete-active-region is enabled.
Its default value is t.
  • Loading branch information
chrisdone committed Dec 19, 2013
1 parent 3ade6a8 commit 3f7747e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haskell-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ Preserves indentation and removes extra whitespace"
(cond
((haskell-indentation-outside-bird-line)
(delete-char (- n)))
((and delete-selection-mode
mark-active
((and (use-region-p)
delete-active-region
(not (= (point) (mark))))
(delete-region (mark) (point)))
((or (= (haskell-current-column) 0)
Expand Down

0 comments on commit 3f7747e

Please sign in to comment.