summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
AgeCommit message (Collapse)Author
2024-06-03patch 9.1.0465: missing filecopy() functionv9.1.0465Shougo Matsushita
Problem: missing filecopy() function Solution: implement filecopy() Vim script function (Shougo Matsushita) closes: #12346 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other bufv9.1.0231zeertzjq
Problem: Filetype may be undetected when a SwapExists autocommand sets filetype in another buffer. Solution: Make filetype detection state buffer-specific. Also fix a similar problem for 'modified' (zeertzjq). closes: #14344 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-12patch 9.1.0172: More code can use ml_get_buf_len() instead of STRLEN()v9.1.0172zeertzjq
Problem: More code can use ml_get_buf_len() instead of STRLEN(). Solution: Change more STRLEN() calls to ml_get_buf_len(). Also do not set ml_line_textlen in ml_replace_len() if "has_props" is set, because "len_arg" also includes the size of text properties in that case. (zeertzjq) closes: #14183 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-07patch 9.1.0158: 'shortmess' "F" flag doesn't work properly with 'autoread'v9.1.0158zeertzjq
Problem: 'shortmess' "F" flag doesn't work properly with 'autoread' (after 9.1.0154) Solution: Hide the file info message instead of the warning dialog (zeertzjq) closes: #14159 closes: #14158 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-06patch 9.1.0154: shm=F not respected when reloading buffer with 'autoread'v9.1.0154Shougo Matsushita
Problem: shm=F not respected when reloading buffer with 'autoread' Solution: Check SHM_FILEINFO in buf_check_timestamp() (Shougo Matsushita) closes: #14144 Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-15patch 9.1.0113: duplicate code when cleaning undo stackv9.1.0113Christian Brabandt
Problem: duplicate code when cleaning undo stack Solution: refactor undo cleanup into a single public function related: #13928 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-06-17patch 9.0.1640: compiler warning for unused variables without crypt featurev9.0.1640Bram Moolenaar
Problem: Compiler warning for unused variables without the crypt feature. Solution: Adjust #ifdefs
2023-06-17patch 9.0.1639: build failure without the crypt featurev9.0.1639Bram Moolenaar
Problem: Build failure without the crypt feature. Solution: Adjust #ifdefs
2023-06-17patch 9.0.1638: crypt tests hang and cause memory errorsv9.0.1638Bram Moolenaar
Problem: crypt tests hang and cause memory errors Solution: Move variable to start of function.
2023-06-16patch 9.0.1637: compiler warning for uninitialized variablev9.0.1637Christian Brabandt
Problem: Compiler warning for uninitialized variable. Solution: Move the variable to an inner block and initialize it. (Christian Brabandt, closes #12549)
2023-05-27patch 9.0.1583: get E304 when using 'cryptmethod' "xchacha20v2"v9.0.1583Bram Moolenaar
Problem: Get E304 when using 'cryptmethod' "xchacha20v2". (Steve Mynott) Solution: Add 4th crypt method to block zero ID check. Avoid syncing a swap file before reading the file. (closes #12433)
2023-04-23patch 9.0.1481: decrypting with libsodium may fail if the library changesv9.0.1481Christian Brabandt
Problem: Decrypting with libsodium may fail if the library changes. Solution: Add parameters used to the encrypted file header. (Christian Brabandt, closes #12279)
2023-03-07patch 9.0.1391: "clear" macros are not always usedv9.0.1391Yegappan Lakshmanan
Problem: "clear" macros are not always used. Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more places. (Yegappan Lakshmanan, closes #12104)
2023-03-05patch 9.0.1381: ACCESS_ names have a conflict with on some systemsv9.0.1381=?UTF-8?q?Ola=20S=C3=B6der?=
Problem: ACCESS_ names have a conflict with on some systems. Solution: Rename by prepending VIM_. (Ola Söder, closes #12105)
2023-01-02patch 9.0.1132: code is indented more than neededv9.0.1132Yegappan Lakshmanan
Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769)
2022-11-28patch 9.0.0965: using one window for executing autocommands is insufficientv9.0.0965Bram Moolenaar
Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.
2022-11-01patch 9.0.0826: if 'endofline' is set CTRL-Z may be written in a wrong placev9.0.0826K.Takata
Problem: If 'endofline' is set the CTRL-Z may be written in the wrong place. Solution: Write CTRL-Z at the end of the file. Update the help to explain the possibilities better. (Ken Takata, closes #11486)
2022-10-29patch 9.0.0819v9.0.0819Bram Moolenaar
2022-10-22patch 9.0.0817v9.0.0817v9.0.0816Bram Moolenaar
2022-08-26patch 9.0.0278: the +wildignore feature is nearly always availablev9.0.0278Bram Moolenaar
Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency.
2022-08-26patch 9.0.0275: BufEnter not triggered when using ":edit" in "nofile" bufferv9.0.0275Bram Moolenaar
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer. Solution: Let readfile() return NOTDONE. (closes #10986)
2022-08-26patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" bufferv9.0.0272Bram Moolenaar
Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim Kim) Solution: Call readfile() but bail out before reading a file. (closes #10983)
2022-08-25patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar
Problem: Too many #ifdefs. Solution: Make some functions always available.
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-07-23patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar
Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
2022-06-08patch 8.2.5069: various warnings from clang on MS-Windowsv8.2.5069Yegappan Lakshmanan
Problem: Various warnings from clang on MS-Windows. Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan, closes #10538)
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-04-07patch 8.2.4704: using "else" after return or break increases indentv8.2.4704=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Using "else" after return or break increases indent. Solution: Remove "else" and reduce indent. (Goc Dundar, closes #10099)
2022-04-05patch 8.2.4696: delete() with "rf" argument does not report a failurev8.2.4696zeertzjq
Problem: delete() with "rf" argument does not report a failure. Solution: Return -1 if the directory could not be removed. (closes #10078)
2022-03-22patch 8.2.4610: some conditions are always truev8.2.4610Bram Moolenaar
Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
2022-02-21patch 8.2.4430: GTK: crash when using 'guiligatures' and reading from stdinv8.2.4430Amon Sha
Problem: GTK: crash when using 'guiligatures' and reading from stdin. Solution: Make a copy of the message. (Amon Sha, closes #9719, closes #9814)
2022-02-16patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo252
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
2022-02-11patch 8.2.4343: when reloading not all properties are detectedv8.2.4343Rob Pilling
Problem: When reloading not all properties are detected. Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes #9579)
2022-01-19patch 8.2.4142: build failure with normal features without persistent undov8.2.4142Bram Moolenaar
Problem: Build failure with normal features without persistent undo. Solution: Adjust #ifdef. (closes #9557)
2022-01-08patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar
Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-05patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-02patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-02patch 8.2.3983: error messages are spread outv8.2.3983Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3975: error messages are spread outv8.2.3975Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3959: error messages are spread outv8.2.3959Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-10-15patch 8.2.3515: nano time test fails on Mac and FreeBSDv8.2.3515ichizok
Problem: Nano time test fails on Mac and FreeBSD. Solution: Also check nano time when not on Linux. (Ozaki Kiichi, closes #9000)
2021-10-14patch 8.2.3510: changes are only detected with one second accuracyv8.2.3510Leah Neukirchen
Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes #8873, closes #8875)
2021-09-22patch 8.2.3453: autocmd not executed when editing a directoryv8.2.3453Bram Moolenaar
Problem: Autocmd not executed when editing a directory ending in a path separator inside try block. Solution: Return NOTDONE instead of FAIL. (closes #8885)
2021-07-29patch 8.2.3247: using uninitialized memory when checking for crypt methodv8.2.3247Bram Moolenaar
Problem: Using uninitialized memory when checking for crypt method. Solution: Check the header length before using the salt and seed.
2021-07-29patch 8.2.3245: the crypt key may appear in a swap partitionv8.2.3245Bram Moolenaar
Problem: The crypt key may appear in a swap partition. Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt, closes #8657)
2021-06-30patch 8.2.3079: Powershell core not supported by defaultv8.2.3079Mike Williams
Problem: Powershell core not supported by default. Solution: Set option defaults for "pwsh". (Mike Williams, closes #8481)
2021-06-28patch 8.2.3071: shell options are not set properly for PowerShellv8.2.3071Mike Williams
Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)