How to reproduce.
1. vim -u NONE -N
2. :e test | diffthis
3. :vnew test2 | diffthis
4. :e test3
5. :buffer #
Error message
E749: empty buffer
What I expect
Vim opens the test2 with no error message.
Environment
Vim 7.4.796
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 23 2015 08:48:19)
MacOS X (unix) version
Included patches: 1-796
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +cmdline_hist -dnd -footer +lispindent -mouse_jsbterm +perl +scrollbind -tcl +viminfo -xterm_save
+arabic +cmdline_info -ebcdic +fork() +listcmds +mouse_netterm +persistent_undo +signs +terminfo +vreplace -xpm
+autocmd +comments +emacs_tags -gettext +localmap +mouse_sgr +postscript +smartindent +termresponse +wildignore
-balloon_eval +conceal +eval -hangul_input +lua -mouse_sysmouse +printer -sniff +textobjects +wildmenu
-browse +cryptv +ex_extra +iconv +menu +mouse_urxvt +profile +startuptime +title +windows
++builtin_terms +cscope +extra_search +insert_expand +mksession +mouse_xterm +python +statusline -toolbar +writebackup
+byte_offset +cursorbind +farsi +jumplist +modify_fname +multi_byte -python3 -sun_workshop +user_commands -X11
+cindent +cursorshape +file_in_path +keymap +mouse +multi_lang +quickfix +syntax +vertsplit -xfontset
-clientserver +dialog_con +find_in_path +langmap -mouseshape -mzscheme +reltime +tag_binary +virtualedit -xim
+clipboard +diff +float +libcall +mouse_dec +netbeans_intg +rightleft +tag_old_static +visual -xsmp
+cmdline_compl +digraphs +folding +linebreak -mouse_gpm +path_extra +ruby -tag_any_white +visualextra -xterm_clipboard
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.10 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/clang -L. -L/usr/local/lib -L/usr/local/lib -Wl,-headerpad_max_install_names -o vim -lm -lncurses -liconv -framework Cocoa -pagezero_size 10000 -image_base 10000000
0 -L/usr/local/lib -lluajit-5.1 -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python -lruby.2.0.0 -lobjc
Hope it fixed. Thanks.