summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2010-09-18 18:15:54 +0000
committerTaylor R Campbell <campbell@mumble.net>2010-09-18 18:15:54 +0000
commit7b318649a3c01c2fc078f2bc98b6d340b245dc68 (patch)
tree25e5fe596a43857a391e9fe16ca0d2800d22e6f0
parentd265584f55daf7f0a5ad7e8b866a2d1e8ecd60c5 (diff)
Check `eolp' before using `char-after' in `paredit-kill'.
Ignore-this: 37a88267c3b50f218838c5d456658094 darcs-hash:20100918181554-00fcc-ca49bd133d1f52e92c5b742c58cc643f659a6aba
-rw-r--r--paredit.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/paredit.el b/paredit.el
index 55c5eef..59de8fc 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1341,10 +1341,8 @@ With a numeric prefix argument N, do `kill-line' that many times."
(paredit-kill-line-in-string))
((paredit-in-comment-p)
(kill-line))
- ((save-excursion
- (paredit-skip-whitespace t (point-at-eol))
- (or (eq (char-after) ?\; )
- (eolp)))
+ ((save-excursion (paredit-skip-whitespace t (point-at-eol))
+ (or (eolp) (eq (char-after) ?\; )))
;** Be careful about trailing backslashes.
(if (paredit-in-char-p)
(backward-char))