mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
buffer: move BUFEMPTY to a function
This commit is contained in:
@@ -3069,7 +3069,8 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags)
|
||||
}
|
||||
// In an empty buffer the empty line is going to be replaced, include
|
||||
// it in the saved lines.
|
||||
if ((BUFEMPTY(curbuf) ? u_save(0, 2) : u_save(lnum - 1, lnum)) == FAIL) {
|
||||
if ((buf_is_empty(curbuf) ?
|
||||
u_save(0, 2) : u_save(lnum - 1, lnum)) == FAIL) {
|
||||
goto end;
|
||||
}
|
||||
if (dir == FORWARD) {
|
||||
|
Reference in New Issue
Block a user