summaryrefslogtreecommitdiff
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1231: asking about existing swap file unnecessarilyv8.1.1231Bram Moolenaar2019-04-281-3/+1
| | | | | | Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-1/+4
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1032: warnings from clang static analyzerv8.1.1032Bram Moolenaar2019-03-211-3/+0
| | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
* patch 8.1.0961: Mac: fsync may fail sometimesv8.1.0961Bram Moolenaar2019-02-211-1/+1
| | | | | Problem: Mac: fsync may fail sometimes. Solution: Do not check errno. (Yee Cheng Chin, closes #4025)
* patch 8.1.0957: Mac: fsync fails on network sharev8.1.0957Bram Moolenaar2019-02-201-1/+1
| | | | | Problem: Mac: fsync fails on network share. Solution: Check for ENOTSUP. (Yee Cheng Chin, closes #4016)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-27/+27
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0927: USE_CR is never definedv8.1.0927Bram Moolenaar2019-02-151-52/+1
| | | | | Problem: USE_CR is never defined. Solution: Remove usage of USE_CR. (Ken Takata, closes #3958)
* patch 8.1.0915: fsync() may not work properly on Macv8.1.0915Bram Moolenaar2019-02-141-1/+20
| | | | | Problem: fsync() may not work properly on Mac. Solution: Use fcntl() with F_FULLFSYNC. (suggested by Justin M. Keyes)
* patch 8.1.0904: USE_LONG_FNAME never definedv8.1.0904Bram Moolenaar2019-02-121-17/+3
| | | | | Problem: USE_LONG_FNAME never defined. Solution: Remove using USE_LONG_FNAME. (Ken Takata, closes #3938)
* patch 8.1.0895: MS-Windows: dealing with temp name encoding not quite rightv8.1.0895Bram Moolenaar2019-02-101-32/+16
| | | | | Problem: MS-Windows: dealing with temp name encoding not quite right. Solution: Use more wide functions. (Ken Takata, closes #3921)
* patch 8.1.0882: checking for FEAT_MBYTE which doesn't exist anymorev8.1.0882Bram Moolenaar2019-02-081-1/+1
| | | | | | Problem: Checking for FEAT_MBYTE which doesn't exist anymore. (Christ van Willegen) Solution: Remove it.
* patch 8.1.0879: MS-Windows: temp name encoding can be wrongv8.1.0879Bram Moolenaar2019-02-081-0/+18
| | | | | | Problem: MS-Windows: temp name encoding can be wrong. Solution: Convert from active code page to 'encoding'. (Ken Takata, closes #3520, closes #1698)
* patch 8.1.0825: code for autocommands is mixed with file I/O codev8.1.0825Bram Moolenaar2019-01-261-2582/+6
| | | | | | Problem: Code for autocommands is mixed with file I/O code. Solution: Move autocommand code to a separate file. (Yegappan Lakshmanan, closes #3863)
* patch 8.1.0811: too many #ifdefsv8.1.0811Bram Moolenaar2019-01-241-13/+3
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter.
* patch 8.1.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-202/+109
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-0/+11
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-24/+23
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0773: not all crypt code is testedv8.1.0773Bram Moolenaar2019-01-181-0/+8
| | | | | Problem: Not all crypt code is tested. Solution: Disable unused crypt code. Add more test coverage.
* patch 8.1.0766: various problems when using Vim on VMSv8.1.0766Bram Moolenaar2019-01-171-2/+2
| | | | | Problem: Various problems when using Vim on VMS. Solution: Various fixes. Define long_long_T. (Zoltan Arpadffy)
* patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763Bram Moolenaar2019-01-171-5/+0
| | | | | Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-42/+42
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0729: there is a SourcePre autocommand event but not a SourcePostv8.1.0729Bram Moolenaar2019-01-121-1/+2
| | | | | Problem: There is a SourcePre autocommand event but not a SourcePost. Solution: Add the SourcePost autocommand event. (closes #3739)
* patch 8.1.0630: "wincmd p" does not work after using an autocmd windowv8.1.0630Bram Moolenaar2018-12-241-0/+5
| | | | | Problem: "wincmd p" does not work after using an autocmd window. Solution: Store "prevwin" in aco_save_T. (Christian Brabandt, closes #3690)
* patch 8.1.0528: various typos in commentsv8.1.0528Bram Moolenaar2018-11-161-2/+2
| | | | | Problem: Various typos in comments. Solution: Fix the typos.
* patch 8.1.0475: memory not freed on exit when quit in autocmdv8.1.0475Bram Moolenaar2018-10-141-4/+4
| | | | | Problem: Memory not freed on exit when quit in autocmd. Solution: Remember funccal stack when executing autocmd.
* patch 8.1.0470: pointer ownership around fname_expand() is unclearv8.1.0470Bram Moolenaar2018-10-111-1/+2
| | | | | | Problem: Pointer ownership around fname_expand() is unclear. Solution: Allow b_ffname and b_sfname to point to the same allocated memory, only free one. Update comments.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-16/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0397: no event triggered after updating diffsv8.1.0397Bram Moolenaar2018-09-161-0/+1
| | | | | Problem: No event triggered after updating diffs. Solution: Add the DiffUpdated event.
* patch 8.1.0377: xdiff doesn't use the Vim memory allocation functionsv8.1.0377Bram Moolenaar2018-09-131-6/+6
| | | | | | Problem: Xdiff doesn't use the Vim memory allocation functions. Solution: Change the xdl_ defines. Check for out-of-memory. Rename "ignored" to "vim_ignored".
* patch 8.1.0362: cannot get the script line number when executing a functionv8.1.0362Bram Moolenaar2018-09-101-7/+8
| | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes #3362) Also display the line number with ":verbose set".
* patch 8.1.0306: plural messages are not translated properlyv8.1.0306Bram Moolenaar2018-08-211-9/+4
| | | | | Problem: Plural messages are not translated properly. Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
* patch 8.1.0268: file type checking has too many #ifdefv8.1.0268Bram Moolenaar2018-08-111-18/+2
| | | | | Problem: File type checking has too many #ifdef. Solution: Always define the S_IF macros. (Ken Takata, closes #3306)
* patch 8.1.0251: using full path is not supported for 'backupdir'v8.1.0251Bram Moolenaar2018-08-071-10/+40
| | | | | | Problem: Using a full path is supported for 'directory' but not for 'backupdir'. (Mikolaj Machowski) Solution: Support 'backupdir' as well. (Christian Brabandt, closes #179)
* patch 8.1.0230: directly checking 'buftype' valuev8.1.0230Bram Moolenaar2018-08-011-1/+1
| | | | | Problem: Directly checking 'buftype' value. Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
* patch 8.1.0161: buffer not updated with 'autoread' set if file was deletedv8.1.0161Bram Moolenaar2018-07-071-3/+5
| | | | | | Problem: Buffer not updated with 'autoread' set if file was deleted. (Michael Naumann) Solution: Don't set the timestamp to zero. (closes #3165)
* patch 8.1.0096: inconsistent use of the word autocommandsv8.1.0096Bram Moolenaar2018-06-221-10/+10
| | | | | Problem: Inconsistent use of the word autocommands. Solution: Don't use auto-commands or "auto commands".
* patch 8.1.0020: cannot tell whether a register is executing or recordingv8.1.0020Bram Moolenaar2018-05-221-1/+1
| | | | | | | | Problem: Cannot tell whether a register is being used for executing or recording. Solution: Add reg_executing() and reg_recording(). (Hirohito Higashi, closes #2745) Rename the global variables for consistency. Store the register name in reg_executing.
* patch 8.1.0012: misplaced #endifv8.1.0012Bram Moolenaar2018-05-211-1/+1
| | | | | Problem: Misplaced #endif. Solution: Move the #endif to after the expression. (David Binderman)
* patch 8.0.1781: file names in quickfix window are not shortenedv8.0.1781Bram Moolenaar2018-05-011-21/+31
| | | | | | Problem: File names in quickfix window are not always shortened. Solution: Shorten the file name when opening the quickfix window. (Yegappan Lakshmanan, closes #2851, closes #2846)
* patch 8.0.1777: cannot cleanup before loading another colorschemev8.0.1777Bram Moolenaar2018-04-301-1/+4
| | | | | Problem: Cannot cleanup before loading another colorscheme. Solution: Add the ColorSchemePre autocommand event.
* patch 8.0.1774: reading very long lines can be slowv8.0.1774Bram Moolenaar2018-04-291-12/+26
| | | | | | Problem: Reading very long lines can be slow. Solution: Read up to 1 Mbyte at a time to avoid a lot of copying. Add a check for going over the column limit.
* patch 8.0.1753: various warnings from a static analyserv8.0.1753Bram Moolenaar2018-04-241-1/+1
| | | | | | Problem: Various warnings from a static analyser Solution: Add type casts, remove unneeded conditions. (Christian Brabandt, closes #2770)
* patch 8.0.1748: CmdlineEnter command uses backslash instead of slashv8.0.1748Bram Moolenaar2018-04-221-0/+9
| | | | | Problem: CmdlineEnter command uses backslash instead of slash. Solution: Don't treat the character as a file name. (closes #2837)
* patch 8.0.1737: fchown() used when it is not supportedv8.0.1737Bram Moolenaar2018-04-191-1/+4
| | | | | Problem: fchown() used when it is not supported. Solution: Add #ifdef.
* patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()v8.0.1677Bram Moolenaar2018-04-081-2/+2
| | | | | Problem: No compiler warning for wrong format in vim_snprintf(). Solution: Add printf attribute for gcc. Fix reported problems.
* patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660Bram Moolenaar2018-04-041-7/+7
| | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options.
* patch 8.0.1596: no autocommand specifically for opening a terminal windowv8.0.1596Bram Moolenaar2018-03-111-0/+1
| | | | | Problem: No autocommand specifically for opening a terminal window. Solution: Add TerminalOpen. (?, closes #2484)
* patch 8.0.1595: no autocommand triggered before exitingv8.0.1595Bram Moolenaar2018-03-111-0/+1
| | | | | Problem: No autocommand triggered before exiting. Solution: Add the ExitPre autocommand event.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-120/+23
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-40/+16
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)