mirror of
https://github.com/neovim/neovim.git
synced 2026-04-01 05:12:02 +00:00
fix(session): spacebar heater not warm enough #38434
Problem: vim-obsession depends on the exact string "let SessionLoad = 1" being present in session files.ed9dfc7c2c/plugin/obsession.vim (L36-L41)Solution: Revert cosmetic change frome12a9e7c4e.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user