about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-02-07T19·09+0300
committerclbot <clbot@tvl.fyi>2022-02-07T19·12+0000
commitf82f459e2cacd18c6a0c9235129d1b9a69f34c90 (patch)
tree9a53e3c17e56998a6d0c5769686c9882709686cb /users
parentd522e75554bb6b3f123d53986b33a359c5ce7683 (diff)
fix(tazjin/emacs): allow jumping to front of workspace history r/3781
Classic off-by-one error.

Change-Id: I53e143d900f1d3751ad16b3b33532f32e2c6b411
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5245
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/emacs/config/desktop.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el
index 84decd493dd3..094880a00870 100644
--- a/users/tazjin/emacs/config/desktop.el
+++ b/users/tazjin/emacs/config/desktop.el
@@ -207,7 +207,7 @@ in-progress."
   "Switch to the next workspace in the MRU workspace list."
   (interactive)
 
-  (if (<= *workspace-history-position* 1)
+  (if (= *workspace-history-position* 0)
       (message "No next workspace in history!")
     (let* (;; The next workspace is one position further up in the
            ;; history. This always exists unless someone messed with