Skip to content

Commit 0afdaa5

Browse files
committed
lispy.el (lispy-delete-backward): improve
* lispy-test.el (lispy-delete-backward): Add test.
1 parent bfbf132 commit 0afdaa5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lispy-test.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ Insert KEY if there's no command."
462462
(should (string= (lispy-with "(list\n (foo)\n |\"bar\")" "\C-?")
463463
"(list\n (foo) |\"bar\")"))
464464
(should (string= (lispy-with " |(foo)" "\C-?")
465-
"|(foo)")))
465+
"|(foo)"))
466+
(should (string= (lispy-with "(foo (bar) |)" "\C-?")
467+
"(foo (bar)|)")))
466468

467469
(ert-deftest lispy-pair ()
468470
(should (string= (lispy-with "\"\\\\|\"" "(")

lispy.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ Otherwise (`backward-delete-char-untabify' ARG)."
864864
(looking-at " *$"))
865865
(backward-delete-char-untabify arg))
866866

867-
((looking-back (concat lispy-right " ?"))
867+
((looking-back lispy-right)
868868
(let ((pt (point)))
869869
(lispy-backward arg)
870870
(skip-chars-backward "`',@# \t")

0 commit comments

Comments
 (0)