Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lispy.el
Original file line number Diff line number Diff line change
Expand Up @@ -6218,12 +6218,13 @@ Otherwise return cons of current string, symbol or list bounds."
pt))))))

(defun lispy--bounds-list ()
"Return the bounds of smallest list that includes the point.
First, try to return `lispy--bounds-string'."
"Return the bounds of smallest list that includes the point."
(save-excursion
(lispy--exit-string)
(when (memq (char-after) '(?\( ?\[ ?\{))
(when (looking-at lispy-left)
(forward-char))
(when (lispy-looking-back lispy-right)
(backward-char))
(ignore-errors
(let (beg end)
(up-list)
Expand Down