Problem: Unnecessary multiplications in backspace code, as
"col / ts * ts" is the same as "col - col % ts".
Solution: Change "col / ts * ts" to "col - col % ts". Adjust the loop
and the comments ins_bs() to be easier to understand. Update
tests to reset 'smarttab' properly.
https://github.com/vim/vim/pull/14308
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
That seems like unneccessary optimizations at the risk of breaking something. Does this really gain us something?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Yes, this also deduplicates code between +vartabs
and -vartabs
.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@zeertzjq pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
okay thanks!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.