Tweak cursor movement around tab characters
This commit is contained in:
parent
257f90cff9
commit
e40302e4de
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ int erow_rx_to_cx(struct erow *erow, int rx) {
|
||||||
c_rx += KILO_TAB_STOP - (c_rx % KILO_TAB_STOP);
|
c_rx += KILO_TAB_STOP - (c_rx % KILO_TAB_STOP);
|
||||||
else
|
else
|
||||||
c_rx++;
|
c_rx++;
|
||||||
|
|
||||||
|
if (c_rx > rx)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return cx;
|
return cx;
|
||||||
|
|
Reference in a new issue