diff src/vim.h @ 23011:ec23d84a096d v8.2.2052

patch 8.2.2052: Vim9: "edit +4 fname" gives an error Commit: https://github.com/vim/vim/commit/47a2abf0bc3c3dac0433754ad0365ebad152df8c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 25 20:12:11 2020 +0100 patch 8.2.2052: Vim9: "edit +4 fname" gives an error Problem: Vim9: "edit +4 fname" gives an error. (Naruhiko Nishino) Solution: Allow using a range in the +cmd argument. (closes https://github.com/vim/vim/issues/7364)
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Nov 2020 20:15:04 +0100
parents 7c1e2e3f2d8d
children ad674a98058a
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -1043,6 +1043,7 @@ extern int (*dyn_libintl_wputenv)(const 
 #define DOCMD_KEYTYPED	0x08	// don't reset KeyTyped
 #define DOCMD_EXCRESET	0x10	// reset exception environment (for debugging)
 #define DOCMD_KEEPLINE  0x20	// keep typed line for repeating with "."
+#define DOCMD_RANGEOK	0240	// can use a range without ":" in Vim9 script
 
 // flags for beginline()
 #define BL_WHITE	1	// cursor on first non-white in the line