Skip to content

Commit

Permalink
Merge pull request #7 from syohex/fix-space-regexp
Browse files Browse the repository at this point in the history
Fix invalid empty line regexp
  • Loading branch information
superbobry committed Jan 2, 2014
2 parents a00edb0 + c045a16 commit e0afa92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
(defun io-line-empty-p ()
"Is this line empty? Returns non-nil if so, nil if not."
(or (bobp)
(string-match "^\\ s*$" (io-line-as-string))))
(string-match "^\\s-*$" (io-line-as-string))))

(defun io-newline-and-indent ()
"Inserts a newline and indents it to the same level as the previous line."
Expand Down

0 comments on commit e0afa92

Please sign in to comment.