Mercurial > vim
diff src/ex_docmd.c @ 26804:34f1b7d6974a
patch 8.2.3930: getcmdline() argument has a misleading type
Commit: https://github.com/vim/vim/commit/c97f9a55bd020b94d92c392516d763ed5e43d872
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 28 20:59:56 2021 +0000
patch 8.2.3930: getcmdline() argument has a misleading type
Problem: getcmdline() argument has a misleading type.
Solution: Use the correct type, even though the value is not used.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Dec 2021 22:00:07 +0100 |
parents | fc859aea8cec |
children | 1c22fcc7415c |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -1467,7 +1467,7 @@ get_loop_line(int c, void *cookie, int i // First time inside the ":while"/":for": get line normally. if (cp->getline == NULL) - line = getcmdline(c, 0L, indent, options); + line = getcmdline(c, 0L, indent, 0); else line = cp->getline(c, cp->cookie, indent, options); if (line != NULL && store_loop_line(cp->lines_gap, line) == OK)