Skip to content

Commit

Permalink
Merge pull request #1454 from czipperz/extract-whitespace
Browse files Browse the repository at this point in the history
Beginning/end of buffer should count as whitespace.
  • Loading branch information
gracjan committed Nov 10, 2016
2 parents 6b3dac2 + e96b0a3 commit 023989e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell-decl-scan.el
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ only for `imenu' support.")

(defun haskell-ds-whitespace-p (char)
"Test if CHAR is a whitespace character."
(member char '(?\t ?\n ?\ )))
;; the nil is a bob/eob test
(member char '(nil ?\t ?\n ?\ )))

(defun haskell-ds-move-to-decl (direction bird-literate fix)
"General function for moving to the start of a declaration,
Expand Down

0 comments on commit 023989e

Please sign in to comment.