If softwrap is on the leftcol must be 0

Fixes #645
This commit is contained in:
Zachary Yedidia
2017-05-02 20:12:37 -04:00
parent 84e350aa6f
commit d3f32b5bc3

View File

@@ -662,6 +662,10 @@ func (v *View) openHelp(helpPage string) {
}
func (v *View) DisplayView() {
if v.Buf.Settings["softwrap"].(bool) && v.leftCol != 0 {
v.leftCol = 0
}
if v.Type == vtLog {
// Log views should always follow the cursor...
v.Relocate()