Apply --tabstop to preview window

This commit is contained in:
Junegunn Choi 2016-12-27 01:34:55 +09:00
parent c7b0764002
commit 7b0d9e1e07
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -846,7 +846,7 @@ func (t *Terminal) printPreview() {
limit -= t.pwindow.X()
}
trimmed, _ := trimRight([]rune(line), limit)
lines[i] = string(trimmed)
lines[i], _ = processTabs(trimmed, 0)
}
str = strings.Join(lines, "\n")
}