summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-03-19 12:56:51 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-19 12:56:51 +0000
commit36a5b6867bb6c0bd69c8da7d788000ab8a0b0ab0 (patch)
treefbf0b74c593ab218dc3c66856d13edb2695128b1 /src/ex_cmds.h
parent95d2e7634ccd8e0da78086002509a856999e180c (diff)
patch 8.2.4594: need to write script to a file to be able to source themv8.2.4594
Problem: Need to write script to a file to be able to source them. Solution: Make ":source" use lines from the current buffer. (Yegappan Lakshmanan et al., closes #9967)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index a13de4d80b..c8ebcf6d94 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1428,8 +1428,8 @@ EXCMD(CMD_snoremenu, "snoremenu", ex_menu,
EX_RANGE|EX_ZEROR|EX_EXTRA|EX_TRLBAR|EX_NOTRLCOM|EX_CTRLV|EX_CMDWIN|EX_LOCK_OK,
ADDR_OTHER),
EXCMD(CMD_source, "source", ex_source,
- EX_BANG|EX_FILE1|EX_TRLBAR|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK,
- ADDR_NONE),
+ EX_RANGE|EX_DFLALL|EX_BANG|EX_FILE1|EX_TRLBAR|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK,
+ ADDR_LINES),
EXCMD(CMD_sort, "sort", ex_sort,
EX_RANGE|EX_DFLALL|EX_WHOLEFOLD|EX_BANG|EX_EXTRA|EX_NOTRLCOM|EX_MODIFY,
ADDR_LINES),