Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix vi-mode not to expand the region if the start and the end is the …
…same.
  • Loading branch information
fukamachi committed Aug 17, 2023
commit 5b11e38c5ace3102cd189911010130336659181d
4 changes: 3 additions & 1 deletion extensions/vi-mode/commands/utils.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@
(:line (unless (visual-p)
(line-start start)
(line-end end)))
(:inclusive (character-offset end 1))
(:inclusive
(unless (point= start end)
(character-offset end 1)))
(:exclusive))
(let ((*vi-operator-arguments* (list start end type)))
(funcall fn start end type))))
Expand Down