(kill-region): Use = to compare positions.
This commit is contained in:
parent
8d8aa69a5b
commit
713dca1ca4
1 changed files with 2 additions and 1 deletions
|
@ -1120,7 +1120,8 @@ to make one entry in the kill ring."
|
|||
;; ring to share the same string object. This code does that.
|
||||
((not (or (eq buffer-undo-list t)
|
||||
(eq last-command 'kill-region)
|
||||
(equal beg end)))
|
||||
;; Use = since positions may be numbers or markers.
|
||||
(= beg end)))
|
||||
;; Don't let the undo list be truncated before we can even access it.
|
||||
(let ((undo-strong-limit (+ (- (max beg end) (min beg end)) 100))
|
||||
(old-list buffer-undo-list)
|
||||
|
|
Loading…
Add table
Reference in a new issue