Mercurial > vim
comparison src/evalfunc.c @ 31205:83b25278bac3 v9.0.0936
patch 9.0.0936: wrong type for "isunnamed" returned by getreginfo()
Commit: https://github.com/vim/vim/commit/82946e1439d31e86dfeb6166415c73e70475cce2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 24 11:31:29 2022 +0000
patch 9.0.0936: wrong type for "isunnamed" returned by getreginfo()
Problem: Wrong type for "isunnamed" returned by getreginfo().
Solution: Use VAR_BOOL instead of VAR_SPECIAL. (closes https://github.com/vim/vim/issues/11598)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Nov 2022 12:45:03 +0100 |
parents | 7831da568864 |
children | fa309d9af73c |
comparison
equal
deleted
inserted
replaced
31204:64244fdfa114 | 31205:83b25278bac3 |
---|---|
8413 { | 8413 { |
8414 dictitem_T *item = dictitem_alloc((char_u *)"isunnamed"); | 8414 dictitem_T *item = dictitem_alloc((char_u *)"isunnamed"); |
8415 | 8415 |
8416 if (item != NULL) | 8416 if (item != NULL) |
8417 { | 8417 { |
8418 item->di_tv.v_type = VAR_SPECIAL; | 8418 item->di_tv.v_type = VAR_BOOL; |
8419 item->di_tv.vval.v_number = regname == buf[0] | 8419 item->di_tv.vval.v_number = regname == buf[0] |
8420 ? VVAL_TRUE : VVAL_FALSE; | 8420 ? VVAL_TRUE : VVAL_FALSE; |
8421 (void)dict_add(dict, item); | 8421 (void)dict_add(dict, item); |
8422 } | 8422 } |
8423 } | 8423 } |