diff options
Diffstat (limited to 'ui/tcell/tcell.go')
-rw-r--r-- | ui/tcell/tcell.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/tcell/tcell.go b/ui/tcell/tcell.go index c905704..bdd3b0e 100644 --- a/ui/tcell/tcell.go +++ b/ui/tcell/tcell.go @@ -33,6 +33,11 @@ type Tcell struct{} func (t *Tcell) Init(e editor.Editor) error { ed = e + + if ed.Len() == 0 { + ed.LoadBuffers([]string{"."}) + } + if err := initScreen(); err != nil { return err } |