diff options
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r-- | src/nvim/eval/funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 25252cdfde..8ed73947e7 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -2858,7 +2858,7 @@ static int getreg_get_regname(typval_T *argvars) strregname = get_vim_var_str(VV_REG); } - return *strregname == 0 ? '"' : (uint8_t)(*strregname); + return *strregname == 0 ? '"' : utf_ptr2char(strregname); } /// "getreg()" function |