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