diff --git a/crates/vim/src/normal/search.rs b/crates/vim/src/normal/search.rs index da8f65c1cf25388f3631375a9a2b13d59a538e27..2f723198b6ea9adbd62c9360d545912a4e397aa7 100644 --- a/crates/vim/src/normal/search.rs +++ b/crates/vim/src/normal/search.rs @@ -542,7 +542,7 @@ impl Replacement { if phase == 1 && c.is_ascii_digit() { buffer.push('$') // unescape escaped parens - } else if phase == 0 && c == '(' || c == ')' { + } else if phase == 0 && (c == '(' || c == ')') { } else if c != delimiter { buffer.push('\\') } @@ -561,7 +561,7 @@ impl Replacement { } } else { // escape unescaped parens - if phase == 0 && c == '(' || c == ')' { + if phase == 0 && (c == '(' || c == ')') { buffer.push('\\') } buffer.push(c)