mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
regexp: drop has_mbyte check in regmatch()
has_mbyte is always true in nvim.
This commit is contained in:
@@ -4921,16 +4921,13 @@ regmatch (
|
|||||||
(colnr_T)STRLEN(regline);
|
(colnr_T)STRLEN(regline);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (has_mbyte) {
|
const char_u *const line =
|
||||||
const char_u *const line =
|
reg_getline(behind_pos.rs_u.pos.lnum);
|
||||||
reg_getline(behind_pos.rs_u.pos.lnum);
|
|
||||||
|
|
||||||
rp->rs_un.regsave.rs_u.pos.col -=
|
rp->rs_un.regsave.rs_u.pos.col -=
|
||||||
(*mb_head_off)(line, line
|
utf_head_off(line,
|
||||||
+ rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
|
line + rp->rs_un.regsave.rs_u.pos.col - 1)
|
||||||
} else {
|
+ 1;
|
||||||
rp->rs_un.regsave.rs_u.pos.col--;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (rp->rs_un.regsave.rs_u.ptr == regline) {
|
if (rp->rs_un.regsave.rs_u.ptr == regline) {
|
||||||
|
Reference in New Issue
Block a user