summaryrefslogtreecommitdiffstats
path: root/src/bufwrite.c
AgeCommit message (Collapse)Author
2023-09-30patch 9.0.1962: No support for writing extended attributesv9.0.1962Christian Brabandt
Problem: No support for writing extended attributes Solution: Add extended attribute support for linux It's been a long standing issue, that if you write a file with extended attributes and backupcopy is set to no, the file will loose the extended attributes. So this patch adds support for retrieving the extended attributes and copying it to the new file. It currently only works on linux, mainly because I don't know the different APIs for other systems (BSD, MacOSX and Solaris). On linux, this should be supported since Kernel 2.4 or something, so this should be pretty safe to use now. Enable the extended attribute support with normal builds. I also added it explicitly to the :version output as well as make it able to check using `:echo has("xattr")`, to have users easily check that this is available. In contrast to the similar support for SELINUX and SMACK support (which also internally uses extended attributes), I have made this a FEAT_XATTR define, instead of the similar HAVE_XATTR. Add a test and change CI to include relevant packages so that CI can test that extended attributes are correctly written. closes: #306 closes: #13203 Signed-off-by: Christian Brabandt <cb@256bit.org>
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-02patch 9.0.0828: various typosv9.0.0828dundargoc
Problem: Various typos. Solution: Correct typos. (closes #11432)
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-28Fix wrong struct access for member.Bram Moolenaar
2022-10-22patch 9.0.0817v9.0.0817v9.0.0816Bram Moolenaar
2022-09-20patch 9.0.0509: confusing error for "saveas" command with "nofile" bufferv9.0.0509Bram Moolenaar
Problem: Confusing error for "saveas" command with "nofile" buffer. Solution: Give a clearer error message. (closes #11171)
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-25patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar
Problem: Too many #ifdefs. Solution: Make some functions always available.
2022-07-31patch 9.0.0119: tiny chance that creating a backup file failsv9.0.0119K.Takata
Problem: Tiny chance that creating a backup file fails. Solution: Check for EEXIST error. (Ken Takata, closes #10821)
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-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors 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.3960: error messages are spread outv8.2.3960Bram 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-12-31patch 8.2.3957: error messages are spread outv8.2.3957Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-05patch 8.2.3749: error messages are everywherev8.2.3749Bram Moolenaar
Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
2021-11-29patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
2021-10-16patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517Christian Brabandt
Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
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-07-25patch 8.2.3218: when using xchaha20 crypt undo file is not removedv8.2.3218Christian Brabandt
Problem: When using xchaha20 crypt undo file is not removed. Solution: Reset 'undofile' and delete the file. (Christian Brabandt, closes #8630, closes #8467)
2021-06-27patch 8.2.3063: crash when switching 'cryptmethod' to xchaha20 with undo filev8.2.3063Bram Moolenaar
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)
2021-06-20patch 8.2.3022: available encryption methods are not strong enoughv8.2.3022Christian Brabandt
Problem: Available encryption methods are not strong enough. Solution: Add initial support for xchaha20. (Christian Brabandt, closes #8394)
2021-02-01patch 8.2.2450: MS-Windows: ADS was not preserved if 'backupcopy' is "yes"v8.2.2450Bram Moolenaar
Problem: MS-Windows: ADS was not preserved if 'backupcopy' is "yes". Solution: Copy ADS before truncating the file. (Ken Takata, closes #7762)
2020-12-23patch 8.2.2199: first write after setting 'eol' does not have NL addedv8.2.2199Bram Moolenaar
Problem: First write after setting 'eol' does not have NL added. (Tomáš Janoušek) Solution: Only use b_no_eol_lnum when doing a binary write. (closes #7535)
2020-12-18patch 8.2.2160: various typosv8.2.2160Bram Moolenaar
Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
2020-11-23patch 8.2.2039: viminfo is not written when creating a new filev8.2.2039Bram Moolenaar
Problem: Viminfo is not written when creating a new file. Solution: Set "b_marks_read" in the new buffer. (Christian Brabandt, closes #7350)
2020-10-24patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar
Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-06-12patch 8.2.0966: 'shortmess' flag "n" not used in two placesv8.2.0966Bram Moolenaar
Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes #6245, closes #6244)
2019-12-15patch 8.2.0009: VMS: terminal version doesn't buildv8.2.0009Bram Moolenaar
Problem: VMS: terminal version doesn't build. Solution: Move MIN definition. Adjust #ifdefs. (Zoltan Arpadffy)
2019-11-16patch 8.1.2302: :lockmarks does not work for '[ and ']v8.1.2302Bram Moolenaar
Problem: :lockmarks does not work for '[ and ']. Solution: save and restore '[ and '] marks. (James McCoy, closes #5222)
2019-09-28patch 8.1.2094: the fileio.c file is too bigv8.1.2094Bram Moolenaar
Problem: The fileio.c file is too big. Solution: Move buf_write() to bufwrite.c. (Yegappan Lakshmanan, closes #4990)