Mercurial > vim
comparison src/ex_getln.c @ 29136:ff98d9c228d4 v8.2.5088
patch 8.2.5088: value of cmod_verbose is a bit complicated to use
Commit: https://github.com/vim/vim/commit/cd7496382efc9e6748326c6cda7f01003fa07063
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Jun 14 13:30:35 2022 +0100
patch 8.2.5088: value of cmod_verbose is a bit complicated to use
Problem: Value of cmod_verbose is a bit complicated to use.
Solution: Use zero for not set, value + 1 when set. (closes https://github.com/vim/vim/issues/10564)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Jun 2022 14:45:06 +0200 |
parents | b90bca860b5a |
children | 1ec1ba7e7728 |
comparison
equal
deleted
inserted
replaced
29135:9b6a0ff3d5e5 | 29136:ff98d9c228d4 |
---|---|
254 ea.line1 = 1; | 254 ea.line1 = 1; |
255 ea.line2 = 1; | 255 ea.line2 = 1; |
256 ea.cmd = ccline.cmdbuff; | 256 ea.cmd = ccline.cmdbuff; |
257 ea.addr_type = ADDR_LINES; | 257 ea.addr_type = ADDR_LINES; |
258 | 258 |
259 CLEAR_FIELD(dummy_cmdmod); | |
260 parse_command_modifiers(&ea, &dummy, &dummy_cmdmod, TRUE); | 259 parse_command_modifiers(&ea, &dummy, &dummy_cmdmod, TRUE); |
261 | 260 |
262 cmd = skip_range(ea.cmd, TRUE, NULL); | 261 cmd = skip_range(ea.cmd, TRUE, NULL); |
263 if (vim_strchr((char_u *)"sgvl", *cmd) == NULL) | 262 if (vim_strchr((char_u *)"sgvl", *cmd) == NULL) |
264 goto theend; | 263 goto theend; |