fix(session): spacebar heater not warm enough #38434

Problem:
vim-obsession depends on the exact string "let SessionLoad = 1" being
present in session files. https://github.com/tpope/vim-obsession/blob/ed9dfc7c2cc917ace8b24f4f9f80a91e05614b63/plugin/obsession.vim#L36-L41

Solution:
Revert cosmetic change from e12a9e7c4e.
This commit is contained in:
Justin M. Keyes
2026-03-23 08:09:33 -04:00
committed by GitHub
parent 9a5641b4b5
commit fc21433167
+2 -2
View File
@@ -999,7 +999,7 @@ void ex_mkrc(exarg_T *eap)
}
if (eap->cmdidx == CMD_mksession) {
if (put_line(fd, "let g:SessionLoad = 1") == FAIL) {
if (put_line(fd, "let SessionLoad = 1") == FAIL) {
failed = true;
}
}
@@ -1073,7 +1073,7 @@ void ex_mkrc(exarg_T *eap)
failed = true;
}
if (eap->cmdidx == CMD_mksession) {
if (fprintf(fd, "unlet g:SessionLoad\n") < 0) {
if (fprintf(fd, "unlet SessionLoad\n") < 0) {
failed = true;
}
}