mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 10:14:55 +00:00
Don't convert a single space before a tab stop into a tab when the
-i option is used.
This commit is contained in:
parent
4471d80f69
commit
06b959916f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98408
|
@ -1151,7 +1151,7 @@ otln(buf, cnt, svips, svops, mor)
|
|||
/*
|
||||
* got a non space char; contract out spaces
|
||||
*/
|
||||
while (ops < ips) {
|
||||
while (ips - ops > 1) {
|
||||
/*
|
||||
* use as many ochar as will fit
|
||||
*/
|
||||
|
@ -1196,7 +1196,7 @@ otln(buf, cnt, svips, svops, mor)
|
|||
}
|
||||
|
||||
if (mor < 0) {
|
||||
while (ops < ips) {
|
||||
while (ips - ops > 1) {
|
||||
/*
|
||||
* use as many ochar as will fit
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue