Mercurial > vim
annotate src/proto/cmdexpand.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 | cec4da73951a |
children | eb878f85967e |
rev | line source |
---|---|
17779
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* cmdexpand.c */ |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 int nextwild(expand_T *xp, int type, int options, int escape); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 char_u *ExpandOne(expand_T *xp, char_u *str, char_u *orig, int options, int mode); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 void ExpandInit(expand_T *xp); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 void ExpandCleanup(expand_T *xp); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 int showmatches(expand_T *xp, int wildmenu); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 char_u *sm_gettail(char_u *s); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 char_u *addstar(char_u *fname, int len, int context); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 void f_getcompletion(typval_T *argvars, typval_T *rettv); |
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 /* vim: set ft=c : */ |