aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-07-09 10:15:18 +0200
committerGitHub <noreply@github.com>2021-07-09 10:15:18 +0200
commit1c416892879de6b78038f2cc2f1487eff46abb60 (patch)
tree3895521bc907b7a0617940c21272ac7ee9f052da /src/nvim/option.c
parent27118c6eb3351b0df96e2514e8f3806108e50cf7 (diff)
parent9c93e6461c8c6ec2e8d3e73f506389ac7086d531 (diff)
downloadrneovim-1c416892879de6b78038f2cc2f1487eff46abb60.tar.gz
rneovim-1c416892879de6b78038f2cc2f1487eff46abb60.tar.bz2
rneovim-1c416892879de6b78038f2cc2f1487eff46abb60.zip
Merge pull request #12971 from vigoux/decurbuf
Decrease reliance on curbuf in BUFEMPTY and `undo.c`
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index fd15114999..861a8f5d4b 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -880,7 +880,7 @@ void set_init_3(void)
xfree(p);
}
- if (BUFEMPTY()) {
+ if (buf_is_empty(curbuf)) {
int idx_ffs = findoption_len(S_LEN("ffs"));
// Apply the first entry of 'fileformats' to the initial buffer.