comparison src/mouse.c @ 29175:755ab148288b v8.2.5107

patch 8.2.5107: some callers of rettv_list_alloc() check for not OK Commit: https://github.com/vim/vim/commit/93a1096fe48e12095544924adb267e3b8a16b221 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 16 11:42:09 2022 +0100 patch 8.2.5107: some callers of rettv_list_alloc() check for not OK Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Jun 2022 12:45:03 +0200
parents 6cdf55afaae9
children 9dce192d1ac2
comparison
equal deleted inserted replaced
29174:a13f0046b5ef 29175:755ab148288b
3097 varnumber_T winrow = 0; 3097 varnumber_T winrow = 0;
3098 varnumber_T wincol = 0; 3098 varnumber_T wincol = 0;
3099 linenr_T lnum = 0; 3099 linenr_T lnum = 0;
3100 varnumber_T column = 0; 3100 varnumber_T column = 0;
3101 3101
3102 if (rettv_dict_alloc(rettv) != OK) 3102 if (rettv_dict_alloc(rettv) == FAIL)
3103 return; 3103 return;
3104 d = rettv->vval.v_dict; 3104 d = rettv->vval.v_dict;
3105 3105
3106 dict_add_number(d, "screenrow", (varnumber_T)mouse_row + 1); 3106 dict_add_number(d, "screenrow", (varnumber_T)mouse_row + 1);
3107 dict_add_number(d, "screencol", (varnumber_T)mouse_col + 1); 3107 dict_add_number(d, "screencol", (varnumber_T)mouse_col + 1);