summaryrefslogtreecommitdiff
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorMauro Aranda <maurooaranda@gmail.com>2021-01-04 10:02:20 -0300
committerMauro Aranda <maurooaranda@gmail.com>2021-01-04 10:02:20 -0300
commit4e80eb7b7ce76e02fa0b2b0fa66223f29e3f6bcd (patch)
treebcce0b8a668105eb84b8feb819294c1c42babaea /lisp/wid-edit.el
parent65f21729e60f831026ce134b87561c5119b6a926 (diff)
downloademacs-4e80eb7b7ce76e02fa0b2b0fa66223f29e3f6bcd.tar.gz
Don't skip widgets when moving backward
* lisp/wid-edit.el (widget-move): Remove code that caused widget-backward to skip an immediate previous widget when moving backward from the start of a widget. (Bug#45623) * test/lisp/wid-edit-tests.el (widget-test-widget-backward): New test.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index f920130226e..8b10d71dcb3 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1204,7 +1204,6 @@ This is much faster.")
ARG may be negative to move backward.
When the second optional argument is non-nil,
nothing is shown in the echo area."
- (or (bobp) (> arg 0) (backward-char))
(let ((wrapped 0)
(number arg)
(old (widget-tabable-at)))