Skip to content

Commit

Permalink
Fix wrong call with negative argument
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 26, 2021
1 parent bcdd8ef commit 31da519
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ protected boolean forwardWord() {

protected boolean viForwardWord() {
if (count < 0) {
return callNeg(this::backwardWord);
return callNeg(this::viBackwardWord);
}
while (count-- > 0) {
if (isViAlphaNum(buf.currChar())) {
Expand Down Expand Up @@ -1479,7 +1479,7 @@ protected boolean backwardWord() {

protected boolean viBackwardWord() {
if (count < 0) {
return callNeg(this::backwardWord);
return callNeg(this::viForwardWord);
}
while (count-- > 0) {
int nl = 0;
Expand Down

0 comments on commit 31da519

Please sign in to comment.