summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/delsel.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el
index 2294df5ac67..4d52ab2f7ba 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -84,7 +84,7 @@ When OFF, typed text is just inserted at point."
(setq delete-selection-mode
(if (null arg) (not delete-selection-mode)
(> (prefix-numeric-value arg) 0)))
- (set-buffer-modified-p (buffer-modified-p))) ;No-op, but updates mode line.
+ (force-mode-line-update))
;; This is very useful for cancelling a selection in the minibuffer without
;; aborting the minibuffer.