mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05: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. https://github.com/tpope/vim-obsession/blob/ed9dfc7c2cc917ace8b24f4f9f80a91e05614b63/plugin/obsession.vim#L36-L41
Solution:
Revert cosmetic change from e12a9e7c4e.
This commit is contained in:
1 parent
9a5641b4b5
commit
fc21433167
1 file changed
+2
-2
@@ -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