diff options
Diffstat (limited to 'widgets/exline.go')
-rw-r--r-- | widgets/exline.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/exline.go b/widgets/exline.go index 1482f0e0..f2c7249f 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -16,11 +16,11 @@ type ExLine struct { input *ui.TextInput } -func NewExLine(commit func(cmd string), finish func(), +func NewExLine(cmd string, commit func(cmd string), finish func(), tabcomplete func(cmd string) []string, cmdHistory lib.History) *ExLine { - input := ui.NewTextInput("").Prompt(":").TabComplete(tabcomplete) + input := ui.NewTextInput("").Prompt(":").TabComplete(tabcomplete).Set(cmd) exline := &ExLine{ commit: commit, finish: finish, |