fix(upload): +upload/register-remote: don't overwrite old values

...on consecutive uses.

Amend: b7d9c1801d
This commit is contained in:
Henrik Lissner
2025-09-26 00:19:17 -04:00
parent ef94c82e03
commit 1d1d17e9c9

View File

@@ -24,9 +24,10 @@ command was used."
(progn
(message "ssh-deploy: mapping %S to %S (in %S)"
local remote (buffer-name buffer))
(setq-local +upload--old-local ssh-deploy-root-local
+upload--old-remote ssh-deploy-root-remote
ssh-deploy-root-local local
(unless (local-variable-p '+upload--old-remote)
(setq-local +upload--old-local ssh-deploy-root-local
+upload--old-remote ssh-deploy-root-remote))
(setq-local ssh-deploy-root-local local
ssh-deploy-root-remote remote))
(if (or +upload--old-local
+upload--old-remote)