mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
refactor: convert macros to all-caps (#17895)
Closes https://github.com/neovim/neovim/issues/6297
This commit is contained in:
@@ -2321,8 +2321,8 @@ int buf_write(buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_
|
||||
fname = sfname;
|
||||
#endif
|
||||
|
||||
if (buf->b_ffname != NULL && fnamecmp(ffname, buf->b_ffname) == 0) {
|
||||
overwriting = TRUE;
|
||||
if (buf->b_ffname != NULL && FNAMECMP(ffname, buf->b_ffname) == 0) {
|
||||
overwriting = true;
|
||||
} else {
|
||||
overwriting = FALSE;
|
||||
}
|
||||
@@ -4647,7 +4647,7 @@ int vim_rename(const char_u *from, const char_u *to)
|
||||
* to the same file (ignoring case and slash/backslash differences) but
|
||||
* the file name differs we need to go through a temp file.
|
||||
*/
|
||||
if (fnamecmp(from, to) == 0) {
|
||||
if (FNAMECMP(from, to) == 0) {
|
||||
if (p_fic && (STRCMP(path_tail((char_u *)from), path_tail((char_u *)to))
|
||||
!= 0)) {
|
||||
use_tmp_file = true;
|
||||
|
Reference in New Issue
Block a user