Fix horizontal scrolling issue after toggling softwrap on/off

Fixes #645
This commit is contained in:
Dmitry Maluka
2021-03-03 20:51:06 +01:00
parent c960c93a83
commit a1651aec2f
3 changed files with 23 additions and 1 deletions

View File

@@ -41,6 +41,10 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
b.Type.Readonly = nativeValue.(bool)
}
if b.OptionCallback != nil {
b.OptionCallback(option, nativeValue)
}
return nil
}