diff options
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index c4abcd77b1..5ece645b0d 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -213,7 +213,7 @@ open_buffer ( * So the modelines have priority over auto commands. */ /* When reading stdin, the buffer contents always needs writing, so set - * the changed flag. Unless in readonly mode: "ls | gview -". + * the changed flag. Unless in readonly mode: "ls | nvim -R -". * When interrupted and 'cpoptions' contains 'i' set changed flag. */ if ((got_int && vim_strchr(p_cpo, CPO_INTMOD) != NULL) || modified_was_set /* ":set modified" used in autocmd */ @@ -725,7 +725,7 @@ do_bufdel ( */ if (bnr == curbuf->b_fnum) do_current = bnr; - else if (do_buffer(command, DOBUF_FIRST, FORWARD, (int)bnr, + else if (do_buffer(command, DOBUF_FIRST, FORWARD, bnr, forceit) == OK) ++deleted; |