mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
Fix bug with deactivation of mark in 'cua-cancel'
* lisp/emulation/cua-base.el (cua-cancel): Use 'deactivate-mark' instead of setting 'mark-active' directly. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
be5d0c0f63
commit
2fec4c733c
@ -860,7 +860,7 @@ With numeric prefix arg, copy to register 0-9 instead."
|
||||
(defun cua-cancel ()
|
||||
"Cancel the active region, rectangle, or global mark."
|
||||
(interactive)
|
||||
(setq mark-active nil)
|
||||
(deactivate-mark)
|
||||
(if (fboundp 'cua--cancel-rectangle)
|
||||
(cua--cancel-rectangle)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user