Skip to content

Commit

Permalink
meow-command: fix behavior of meow-next-thing (#615)
Browse files Browse the repository at this point in the history
Fixes regression from #596. Picks between a bound and the mark correctly when the mark is within bounds of the thing being selected.
  • Loading branch information
udayvir-singh authored Jul 12, 2024
1 parent 552412f commit 369014f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meow-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ This will shrink the word selection only contains
(1- pos)))
(let ((bounds (bounds-of-thing-at-point thing)))
(if (> mark pos)
(cdr bounds)
(car bounds)))))
(min mark (cdr bounds))
(max mark (car bounds))))))

(defun meow-next-thing (thing type n)
"Create non-expandable selection of TYPE to the end of the next Nth THING.
Expand Down

0 comments on commit 369014f

Please sign in to comment.