summaryrefslogtreecommitdiff
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1843: might be freeing memory that was not allocatedv8.1.1843Bram Moolenaar2019-08-131-8/+11
| | | | | Problem: Might be freeing memory that was not allocated. Solution: Have next_fenc() set the fenc_alloced flag. (closes #4804)
* patch 8.1.1789: cannot see file name of preview popup windowv8.1.1789Bram Moolenaar2019-08-011-0/+3
| | | | | Problem: Cannot see file name of preview popup window. Solution: Add the file name as the title.
* patch 8.1.1780: warning for file no longer available is repeatedv8.1.1780Bram Moolenaar2019-07-311-1/+7
| | | | | | Problem: Warning for file no longer available is repeated every time Vim is focused. (Brian Armstrong) Solution: Only give the message once. (closes #4748)
* patch 8.1.1736: viminfo support is spread outv8.1.1736Bram Moolenaar2019-07-231-22/+0
| | | | | | Problem: Viminfo support is spread out. Solution: Move more viminfo code to viminfo.c. (Yegappan Lakshmanan, closes #4717) Reorder code to make most functions static.
* patch 8.1.1547: functionality of bt_nofile() is confusingv8.1.1547Bram Moolenaar2019-06-151-5/+5
| | | | | Problem: Functionality of bt_nofile() is confusing. Solution: Split into bt_nofile() and bt_nofilename().
* patch 8.1.1498: ":write" increments b:changedtick even though nothing changedv8.1.1498Bram Moolenaar2019-06-081-3/+3
| | | | | | Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-3/+2
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-1/+1
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-10/+6
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1385: signed/unsigned compiler warningv8.1.1385Bram Moolenaar2019-05-241-1/+1
| | | | | Problem: Signed/unsigned compiler warning. Solution: Use STRLEN() instead of strlen().
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-5/+5
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1379: filechanged test hangsv8.1.1379Bram Moolenaar2019-05-241-3/+2
| | | | | Problem: Filechanged test hangs. Solution: Do not check 'autoread'.
* patch 8.1.1378: delete() can not handle a file name that looks like a patternv8.1.1378Bram Moolenaar2019-05-241-13/+159
| | | | | | Problem: Delete() can not handle a file name that looks like a pattern. Solution: Use readdir() instead of appending "/*" and expanding wildcards. (Ken Takata, closes #4424, closes #696)
* patch 8.1.1374: check for file changed triggers too oftenv8.1.1374Bram Moolenaar2019-05-241-1/+1
| | | | | Problem: Check for file changed triggers too often. Solution: Don't use "b_p_ar" when it is negative.
* patch 8.1.1349: if writing runs into conversion error backup file is deletedv8.1.1349Bram Moolenaar2019-05-181-4/+4
| | | | | | | Problem: If writing runs into a conversion error the backup file is deleted. (Arseny Nasokin) Solution: Don't delete the backup file is the file was overwritten and a conversion error occurred. (Christian Brabandt, closes #4387)
* 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)