summaryrefslogtreecommitdiff
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2828: Coverity complains about not checking rename() return valuev8.2.2828Bram Moolenaar2021-05-031-1/+1
| | | | | Problem: Coverity complains about not checking the rename() return value. Solution: Add "(void)", can't do anything in case of a failure.
* patch 8.2.2294: VMS: a few remaining problemsv8.2.2294Bram Moolenaar2021-01-041-2/+7
| | | | | Problem: VMS: a few remaining problems. Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)
* patch 8.2.2276: list of distributed files is outdatedv8.2.2276Bram Moolenaar2021-01-021-0/+1
| | | | | Problem: List of distributed files is outdated. Solution: Update the file list. Minor comment updates.
* patch 8.2.2055: MS-Windows: two Vim instances may use the same temp filev8.2.2055Bram Moolenaar2020-11-261-2/+9
| | | | | Problem: MS-Windows: two Vim instances may use the same temp file. Solution: Use the process ID for the temp name. (Ken Takata, closes #7378)
* patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar2020-10-281-1/+1
| | | | | Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
* 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.1832: readdirex() error is displayed as a messagev8.2.1832Bram Moolenaar2020-10-111-2/+2
| | | | | Problem: readdirex() error is displayed as a message. (Yegappan Lakshmanan) Solution: Use semsg() instead of smsg().
* patch 8.2.1793: not consistently giving the "is a directory" warningv8.2.1793Bram Moolenaar2020-10-031-10/+18
| | | | | | Problem: Not consistently giving the "is a directory" warning. Solution: Adjust check for illegal file name and directory. (Yasuhiro Matsumoto, closes #7067)
* patch 8.2.1570: configure check for dirfd() does not work on HPUXv8.2.1570Bram Moolenaar2020-09-021-0/+5
| | | | | Problem: Configure check for dirfd() does not work on HPUX. (Michael Osipov) Solution: Use AC_TRY_LINK instead of AC_TRY_COMPILE. (closes #6838)
* patch 8.2.1422: the Mac GUI implementation is outdatedv8.2.1422Bram Moolenaar2020-08-111-6/+0
| | | | | | | Problem: The Mac GUI implementation is outdated and probably doesn't even work. Solution: Remove the Mac GUI code. The MacVim project provides the supported Vim GUI version.
* patch 8.2.1215: Atari MiNT support is outdatedv8.2.1215Bram Moolenaar2020-07-141-1/+1
| | | | | Problem: Atari MiNT support is outdated. Solution: Nobody responded this code is still useful, so let's delete it.
* patch 8.2.1128: the write message mentions characters, but it's bytesv8.2.1128Bram Moolenaar2020-07-051-2/+2
| | | | | Problem: The write message mentions characters, but it's actually bytes. Solution: Change "C" to "B" and "characters" to "bytes".
* patch 8.2.1088: a very long translation might cause a buffer overflowv8.2.1088Bram Moolenaar2020-06-291-3/+7
| | | | | Problem: A very long translation might cause a buffer overflow. Solution: Trunctate the message if needed.
* patch 8.2.0988: getting directory contents is always case sortedv8.2.0988Bram Moolenaar2020-06-161-5/+32
| | | | | Problem: Getting directory contents is always case sorted. Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229)
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-1/+1
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0966: 'shortmess' flag "n" not used in two placesv8.2.0966Bram Moolenaar2020-06-121-1/+2
| | | | | | Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes #6245, closes #6244)
* patch 8.2.0947: readdirex() doesn't handle broken link properlyv8.2.0947Bram Moolenaar2020-06-101-2/+12
| | | | | | Problem: Readdirex() doesn't handle broken link properly. Solution: Small fixes to readdirex(). (Christian Brabandt, closes #6226, closes #6213)
* patch 8.2.0888: readdirex() returns size -2 for a directoryv8.2.0888Bram Moolenaar2020-06-021-1/+1
| | | | | Problem: Readdirex() returns size -2 for a directory. Solution: Add missing "else". (Ken Takata, closes #6185)
* patch 8.2.0875: getting attributes for directory entries is slowv8.2.0875Bram Moolenaar2020-06-011-103/+381
| | | | | Problem: Getting attributes for directory entries is slow. Solution: Add readdirex(). (Ken Takata, closes #5619)
* patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar2020-05-301-4/+4
| | | | | Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
* patch 8.2.0711: temp directory might be clearedv8.2.0711Bram Moolenaar2020-05-071-0/+42
| | | | | | Problem: With a long running Vim the temp directory might be cleared on some systems. Solution: Lock the temp directory. (closes #6044)
* patch 8.2.0474: cannot use :write when using a plugin with BufWriteCmdv8.2.0474Bram Moolenaar2020-03-291-4/+14
| | | | | Problem: Cannot use :write when using a plugin with BufWriteCmd. Solution: Reset BF_NOTEDITED after BufWriteCmd. (closes #5807)
* patch 8.2.0320: no Haiku supportv8.2.0320Bram Moolenaar2020-02-261-97/+101
| | | | | Problem: No Haiku support. Solution: Add support for Haiku. (Emir Sari, closes #5605)
* patch 8.2.0296: mixing up "long long" and __int64 may cause problemsv8.2.0296Bram Moolenaar2020-02-221-2/+2
| | | | | | Problem: Mixing up "long long" and __int64 may cause problems. (John Marriott) Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
* patch 8.2.0209: function a bit far away from where it's usedv8.2.0209Bram Moolenaar2020-02-041-5/+5
| | | | | Problem: Function a bit far away from where it's used. Solution: Move function close to where it's used. (Ken Takata, closes #5569)
* patch 8.2.0009: VMS: terminal version doesn't buildv8.2.0009Bram Moolenaar2019-12-151-5/+0
| | | | | Problem: VMS: terminal version doesn't build. Solution: Move MIN definition. Adjust #ifdefs. (Zoltan Arpadffy)
* patch 8.1.2379: using old C style commentsv8.1.2379Bram Moolenaar2019-12-011-535/+530
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2373: cannot build with +popupwin but without +quickfixv8.1.2373Bram Moolenaar2019-12-011-1/+1
| | | | | Problem: Cannot build with +popupwin but without +quickfix. (John Marriott) Solution: Adjust #ifdefs.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-2/+2
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar2019-11-171-1/+1
| | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
* patch 8.1.2302: :lockmarks does not work for '[ and ']v8.1.2302Bram Moolenaar2019-11-161-11/+13
| | | | | Problem: :lockmarks does not work for '[ and ']. Solution: save and restore '[ and '] marks. (James McCoy, closes #5222)
* patch 8.1.2094: the fileio.c file is too bigv8.1.2094Bram Moolenaar2019-09-281-2760/+20
| | | | | | Problem: The fileio.c file is too big. Solution: Move buf_write() to bufwrite.c. (Yegappan Lakshmanan, closes #4990)
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-1/+1
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-1/+1
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* 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)