diff options
author | Taylor R Campbell <campbell@mumble.net> | 2011-04-11 19:03:48 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell@mumble.net> | 2011-04-11 19:03:48 +0000 |
commit | 8d87576f5fe082236f8b9bd180f2cad9df01e043 (patch) | |
tree | 52a00e92f35d6cfdfff163ef5837e4a60f93230f /paredit.el | |
parent | 23afafcb5562b7c7ce8fae124ce1a4237c0f9b97 (diff) |
Fix logic in checking region deletion across comment boundaries.
Ignore-this: ea283af1a5a27d8d3fe32647e8aa5910
darcs-hash:20110411190348-00fcc-7a8d049f8be17ea0ffec1070fe7ae7a58d0f47be
Diffstat (limited to 'paredit.el')
-rw-r--r-- | paredit.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1722,10 +1722,10 @@ With a prefix argument, skip the balance check." ;; comment state may be a number, not t or nil at all, ;; for nestable comments, which are not handled by ;; this heuristic (or any of paredit, really).) - (and (or (eq start-comment-state nil) - (eq end-comment-state t)) - (or (eq start-comment-state t) - (eq end-comment-state nil)) + (and (or (and (eq start-comment-state nil) + (eq end-comment-state t)) + (and (eq start-comment-state t) + (eq end-comment-state nil))) (save-excursion (goto-char end) (paredit-region-ok-p (point) (point-at-eol)))))) |