mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
widget: ensure editor does not trim trailing whitespace
This commit makes the editor widget suppress the trimming of trailing whitespace so that the spaces can be selected intuitively. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -610,6 +610,7 @@ func (e *Editor) initBuffer() {
|
||||
e.text.SingleLine = e.SingleLine
|
||||
e.text.Mask = e.Mask
|
||||
e.text.WrapPolicy = e.WrapPolicy
|
||||
e.text.DisableSpaceTrim = true
|
||||
}
|
||||
|
||||
// Update the state of the editor in response to input events. Update consumes editor
|
||||
|
||||
Reference in New Issue
Block a user