mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0261: bufload() reads a file even if the name is not a file name
Problem: bufload() reads a file even if the name is not a file name. (Cyker Way) Solution: Do not read the file when the buffer name is not a file name. (closes #10975)
This commit is contained in:
@@ -220,7 +220,10 @@ open_buffer(
|
||||
// mark cursor position as being invalid
|
||||
curwin->w_valid = 0;
|
||||
|
||||
// Read the file if there is one.
|
||||
if (curbuf->b_ffname != NULL
|
||||
&& !bt_quickfix(curbuf)
|
||||
&& !bt_nofilename(curbuf)
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
&& netbeansReadFile
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user