summaryrefslogtreecommitdiff
path: root/src/fileio.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.5069: various warnings from clang on MS-Windowsv8.2.5069Yegappan Lakshmanan2022-06-081-1/+0
| | | | | | Problem: Various warnings from clang on MS-Windows. Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan, closes #10538)
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-2/+2
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-2/+3
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4704: using "else" after return or break increases indentv8.2.4704=?UTF-8?q?Dundar=20G=C3=B6c?=2022-04-071-22/+21
| | | | | Problem: Using "else" after return or break increases indent. Solution: Remove "else" and reduce indent. (Goc Dundar, closes #10099)
* patch 8.2.4696: delete() with "rf" argument does not report a failurev8.2.4696zeertzjq2022-04-051-1/+4
| | | | | Problem: delete() with "rf" argument does not report a failure. Solution: Return -1 if the directory could not be removed. (closes #10078)
* patch 8.2.4610: some conditions are always truev8.2.4610Bram Moolenaar2022-03-221-1/+1
| | | | | Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
* patch 8.2.4430: GTK: crash when using 'guiligatures' and reading from stdinv8.2.4430Amon Sha2022-02-211-2/+7
| | | | | Problem: GTK: crash when using 'guiligatures' and reading from stdin. Solution: Make a copy of the message. (Amon Sha, closes #9719, closes #9814)
* patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo2522022-02-161-1/+1
| | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
* patch 8.2.4343: when reloading not all properties are detectedv8.2.4343Rob Pilling2022-02-111-15/+35
| | | | | Problem: When reloading not all properties are detected. Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes #9579)
* patch 8.2.4142: build failure with normal features without persistent undov8.2.4142Bram Moolenaar2022-01-191-1/+1
| | | | | Problem: Build failure with normal features without persistent undo. Solution: Adjust #ifdef. (closes #9557)
* patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar2022-01-081-1/+1
| | | | | Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-4/+3
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar2022-01-021-2/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3983: error messages are spread outv8.2.3983Bram Moolenaar2022-01-021-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3975: error messages are spread outv8.2.3975Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3959: error messages are spread outv8.2.3959Bram Moolenaar2021-12-311-9/+9
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3515: nano time test fails on Mac and FreeBSDv8.2.3515ichizok2021-10-151-9/+10
| | | | | | Problem: Nano time test fails on Mac and FreeBSD. Solution: Also check nano time when not on Linux. (Ozaki Kiichi, closes #9000)
* patch 8.2.3510: changes are only detected with one second accuracyv8.2.3510Leah Neukirchen2021-10-141-4/+20
| | | | | | Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes #8873, closes #8875)
* patch 8.2.3453: autocmd not executed when editing a directoryv8.2.3453Bram Moolenaar2021-09-221-1/+1
| | | | | | Problem: Autocmd not executed when editing a directory ending in a path separator inside try block. Solution: Return NOTDONE instead of FAIL. (closes #8885)
* patch 8.2.3247: using uninitialized memory when checking for crypt methodv8.2.3247Bram Moolenaar2021-07-291-5/+6
| | | | | Problem: Using uninitialized memory when checking for crypt method. Solution: Check the header length before using the salt and seed.
* patch 8.2.3245: the crypt key may appear in a swap partitionv8.2.3245Bram Moolenaar2021-07-291-4/+0
| | | | | | Problem: The crypt key may appear in a swap partition. Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt, closes #8657)
* patch 8.2.3079: Powershell core not supported by defaultv8.2.3079Mike Williams2021-06-301-2/+5
| | | | | Problem: Powershell core not supported by default. Solution: Set option defaults for "pwsh". (Mike Williams, closes #8481)
* patch 8.2.3071: shell options are not set properly for PowerShellv8.2.3071Mike Williams2021-06-281-2/+3
| | | | | Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)
* patch 8.2.3063: crash when switching 'cryptmethod' to xchaha20 with undo filev8.2.3063Bram Moolenaar2021-06-271-0/+8
| | | | | | | Problem: Crash when switching 'cryptmethod' to xchaha20 with an existing undo file. (Martin Tournoij) Solution: Disable reading undo file when decoding can't be done inplace. (issue #8467)
* patch 8.2.3032: build problems with MSVC, other crypt issues with libsodiumv8.2.3032Christian Brabandt2021-06-211-1/+3
| | | | | | | Problem: Build problems with MSVC, other crypt issues with libsodium. Solution: Adjust MSVC makefile. Disable swap file only when 'key' is set. Adjust error message used when key is wrong. Fix Coverity issues. (Christian Brabandt, closes #8420, closes #8411)
* patch 8.2.3022: available encryption methods are not strong enoughv8.2.3022Christian Brabandt2021-06-201-2/+38
| | | | | | Problem: Available encryption methods are not strong enough. Solution: Add initial support for xchaha20. (Christian Brabandt, closes #8394)
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-1/+1
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* 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)