diff options
author | Vincent Ambo <mail@tazj.in> | 2022-02-07T19·09+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-02-07T19·12+0000 |
commit | f82f459e2cacd18c6a0c9235129d1b9a69f34c90 (patch) | |
tree | 9a53e3c17e56998a6d0c5769686c9882709686cb /users/tazjin | |
parent | d522e75554bb6b3f123d53986b33a359c5ce7683 (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/tazjin')
-rw-r--r-- | users/tazjin/emacs/config/desktop.el | 2 |
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 |