Mercurial > vim
annotate src/proto/bufwrite.pro @ 19693:9fbeb3bdf49e v8.2.0403
patch 8.2.0403: when 'buftype' is "nofile" there is no overwrite check
Commit: https://github.com/vim/vim/commit/a3a9c8ef697bbf6f640cde99710b6f534f29f77d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 19 12:38:34 2020 +0100
patch 8.2.0403: when 'buftype' is "nofile" there is no overwrite check
Problem: When 'buftype' is "nofile" there is no overwrite check.
Solution: Also check for existing file when 'buftype' is set.
(closes #5807)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 Mar 2020 12:45:04 +0100 |
parents | 05b240971884 |
children | db18625d8134 |
rev | line source |
---|---|
18199
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* bufwrite.c */ |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 int buf_write(buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_T end, exarg_T *eap, int append, int forceit, int reset_changed, int filtering); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 /* vim: set ft=c : */ |