aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-11-26 18:57:46 +0100
committerzeertzjq <zeertzjq@outlook.com>2023-01-09 17:03:40 +0800
commit08c2c7480619ccdf0c92fe6ce76da5b73b0e395b (patch)
tree2759bc2cb18bd7edc20fd17e7e0aeb8631bd957c /src/nvim/regexp.c
parent53adccb6e0292f7ba5524121c0200a73aec977a6 (diff)
downloadrneovim-08c2c7480619ccdf0c92fe6ce76da5b73b0e395b.tar.gz
rneovim-08c2c7480619ccdf0c92fe6ce76da5b73b0e395b.tar.bz2
rneovim-08c2c7480619ccdf0c92fe6ce76da5b73b0e395b.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index aa5bcbc404..cbf5530995 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -1077,7 +1077,8 @@ void unref_extmatch(reg_extmatch_T *em)
static int reg_prev_class(void)
{
if (rex.input > rex.line) {
- return mb_get_class_tab(rex.input - 1 - utf_head_off((char *)rex.line, (char *)rex.input - 1),
+ return mb_get_class_tab((char *)rex.input - 1 -
+ utf_head_off((char *)rex.line, (char *)rex.input - 1),
rex.reg_buf->b_chartab);
}
return -1;