[RFC] ":source" sources from current buffer if filename is omitted (#11444)

Fix https://github.com/neovim/neovim/issues/8722
This commit is contained in:
Vikram Pal
2021-02-18 11:55:51 +05:30
committed by GitHub
parent d08e983c6b
commit 4d5dbea4f4
3 changed files with 103 additions and 14 deletions

View File

@@ -2521,8 +2521,8 @@ module.cmds = {
},
{
command='source',
flags=bit.bor(BANG, FILE1, TRLBAR, SBOXOK, CMDWIN),
addr_type='ADDR_NONE',
flags=bit.bor(RANGE, DFLALL, WHOLEFOLD, BANG, FILE1, TRLBAR, SBOXOK, CMDWIN),
addr_type='ADDR_LINES',
func='ex_source',
},
{