summaryrefslogtreecommitdiff
path: root/src/session.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar2022-09-171-2/+0
| | | | | Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
* patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar2022-08-251-14/+3
| | | | | Problem: Too many #ifdefs. Solution: Make some functions always available.
* patch 8.2.4980: when 'shortmess' contains 'A' loading session may still warnv8.2.4980Bram Moolenaar2022-05-181-2/+7
| | | | | | | Problem: When 'shortmess' contains 'A' loading a session may still warn for an existing swap file. (Melker Österberg) Solution: Keep the 'A' flag to 'shortmess' in the session file. (closes #10443)
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-4/+4
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4851: compiler warning for uninitialized variablev8.2.4851Bram Moolenaar2022-05-011-1/+3
| | | | | Problem: Compiler warning for uninitialized variable. Solution: Use another variable to decide to restore option values.
* patch 8.2.4850: mksession mixes up "tabpages" and "curdir" argumentsv8.2.4850LemonBoy2022-04-301-21/+22
| | | | | Problem: Mksession mixes up "tabpages" and "curdir" arguments. Solution: Correct logic for storing tabpage in session. (closes #10312)
* patch 8.2.4645: 'shortmess' changed when session does not store optionsv8.2.4645James Cherti2022-03-291-3/+21
| | | | | | Problem: 'shortmess' changed when session does not store options. Solution: Save and restore 'shortmess' if needed. (James Charti, closes #10037)
* patch 8.2.4566: check for existing buffer in session file may not workv8.2.4566James Cherti2022-03-141-2/+2
| | | | | | Problem: Check for existing buffer in session file does not work for files in the home directory. Solution: Use fnamemodify(). (James Cherti, closes #9945) Add a test.
* patch 8.2.4090: after restoring a session buffer order can be quite differentv8.2.4090Evgeni Chasnovski2022-01-141-24/+27
| | | | | Problem: After restoring a session buffer order can be quite different. Solution: Create buffers first. (Evgeni Chasnovski, closes #9520)
* patch 8.2.4007: session does not restore help buffer properlyv8.2.4007matveyt2022-01-051-3/+19
| | | | | | | Problem: Session does not restore help buffer properly when "options' is missing from 'sessionoptions'. Solution: Use a ":help" command to create the help window. (closes #9475, closes #9458, closes #9472)
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3750: error messages are everywherev8.2.3750Bram Moolenaar2021-12-051-1/+1
| | | | | Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
* patch 8.2.3530: ":buf \{a}" fails while ":edit \{a}" worksv8.2.3530Bram Moolenaar2021-10-171-1/+1
| | | | | Problem: ":buf \{a}" fails while ":edit \{a}" works. Solution: Unescape "\{". (closes #8917)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.2820: session file may divide by zerov8.2.2820Bram Moolenaar2021-04-301-3/+11
| | | | | Problem: Session file may divide by zero. Solution: Avoid writing difide by zero. (closes #8162)
* patch 8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright'v8.2.2776Bram Moolenaar2021-04-171-28/+45
| | | | | | | Problem: :mksession uses current value of 'splitbelow' and 'splitright' even though "options" is not in 'sessionoptions'. (Maxim Kim) Solution: Save and restore the values, instead of setting to the current value. (closes #8119)
* patch 8.2.2772: problems when restoring 'runtimepath' from a session filev8.2.2772Bram Moolenaar2021-04-161-1/+9
| | | | | Problem: Problems when restoring 'runtimepath' from a session file. Solution: Add the "skiprtp" item in 'sessionoptions'.
* patch 8.2.2594: alternate buffer added to session file even when it's hiddenv8.2.2594Bram Moolenaar2021-03-131-1/+2
| | | | | Problem: Alternate buffer added to session file even when it's hidden. Solution: Check the 'buflisted' option. (closes #7951)
* patch 8.2.2467: script generated by :mkview changes alternate filev8.2.2467Bram Moolenaar2021-02-051-1/+2
| | | | | | Problem: Script generated by :mkview changes alternate file. Solution: Only write :balt in the session file. (Harish Rajagopal, closes #7779)
* patch 8.2.2058: using mkview/loadview changes the jumplistv8.2.2058Bram Moolenaar2020-11-271-2/+2
| | | | | | Problem: Using mkview/loadview changes the jumplist. Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the jumplist. (closes #7371)
* patch 8.2.1967: the session file does not restore the alternate filev8.2.1967Bram Moolenaar2020-11-071-0/+13
| | | | | | | Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes #7269, closes #6714)
* patch 8.2.1936: session sets the local 'scrolloff' value to the global valuev8.2.1936Bram Moolenaar2020-11-011-2/+2
| | | | | | Problem: Session sets the local 'scrolloff' value to the global value. Solution: Do not let restoring the global option value change the local value.
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-1/+1
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1664: memory leak when using :mkview with a terminal bufferv8.2.1664Bram Moolenaar2020-09-111-20/+12
| | | | | Problem: Memory leak when using :mkview with a terminal buffer. Solution: Don't use a hastab for :mkview. (Rob Pilling, closes #6935)
* patch 8.2.1662: :mksession does not restore shared terminal buffer properlyv8.2.1662Bram Moolenaar2020-09-111-49/+75
| | | | | Problem: :mksession does not restore shared terminal buffer properly. Solution: Keep a hashtab with terminal buffers. (Rob Pilling, closes #6930)
* patch 8.2.0584: viminfo file uses obsolete function file_readable()v8.2.0584Bram Moolenaar2020-04-161-1/+1
| | | | | Problem: Viminfo file uses obsolete function file_readable(). Solution: Use filereadable(). (closes #5934)
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.1.2102: can't build with GTK and FEAT_GUI_GNOMEv8.1.2102Bram Moolenaar2019-09-291-1/+1
| | | | | Problem: Can't build with GTK and FEAT_GUI_GNOME. (Tony Mechelynck) Solution: Adjust the #ifdef. (Yegappan Lakshmanan)
* patch 8.1.2101: write_session_file() often defined but not usedv8.1.2101Bram Moolenaar2019-09-291-1/+3
| | | | | Problem: write_session_file() often defined but not used. Solution: Adjust the #ifdef. (Yegappan Lakshmanan, closes #4998)
* patch 8.1.1957: more code can be moved to evalvars.cv8.1.1957Bram Moolenaar2019-09-011-2/+3
| | | | | | Problem: More code can be moved to evalvars.c. Solution: Move code to where it fits better. (Yegappan Lakshmanan, closes #4883)
* patch 8.1.1767: FEAT_SESSION defined separatelyv8.1.1767Bram Moolenaar2019-07-281-7/+4
| | | | | Problem: FEAT_SESSION defined separately. Solution: Make FEAT_SESSION depend on FEAT_EVAL.
* patch 8.1.1766: code for writing session file is spread outv8.1.1766Bram Moolenaar2019-07-281-0/+1346
Problem: Code for writing session file is spread out. Solution: Put it in one file. (Yegappan Lakshmanan, closes #4728)