mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
vim-patch:8.1.1261: no error for quickfix commands with negative range
Problem: No error for quickfix commands with negative range. Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make assert_fails() show the command if the error doesn't match.25190db225
N/A patches for version.c: vim-patch:8.2.0113: "make cmdidxs" fails Problem: "make cmdidxs" fails. Solution: Allow address for ":cquit". Add --not-a-term to avoid a delay.9b24dfcb9f
This commit is contained in:
@@ -4269,9 +4269,20 @@ static char_u *get_mef_name(void)
|
||||
return name;
|
||||
}
|
||||
|
||||
/// Returns the number of valid entries in the current quickfix/location list.
|
||||
/// Returns the number of entries in the current quickfix/location list.
|
||||
size_t qf_get_size(exarg_T *eap)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
qf_info_T *qi;
|
||||
|
||||
if ((qi = qf_cmd_get_stack(eap, false)) == NULL) {
|
||||
return 0;
|
||||
}
|
||||
return (size_t)qf_get_curlist(qi)->qf_count;
|
||||
}
|
||||
|
||||
/// Returns the number of valid entries in the current quickfix/location list.
|
||||
size_t qf_get_valid_size(exarg_T *eap)
|
||||
{
|
||||
qf_info_T *qi;
|
||||
qf_list_T *qfl;
|
||||
|
Reference in New Issue
Block a user