From f82f459e2cacd18c6a0c9235129d1b9a69f34c90 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 7 Feb 2022 22:09:09 +0300 Subject: fix(tazjin/emacs): allow jumping to front of workspace history Classic off-by-one error. Change-Id: I53e143d900f1d3751ad16b3b33532f32e2c6b411 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5245 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/desktop.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/tazjin/emacs/config') 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 -- cgit 1.4.1