diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-06-11 20:04:21 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-06-11 20:04:21 -0400 |
commit | 6728a11fdf863f7a33eb14e84421b828ab28c09f (patch) | |
tree | c9e1dcb85e34273b3f166f50a84e608aafe4e502 /widgets/exline.go | |
parent | d67c8a60ef9a326ba7e2ff0b5755d8eba629d4eb (diff) | |
download | aerc-6728a11fdf863f7a33eb14e84421b828ab28c09f.tar.gz |
Apply gofmt
Diffstat (limited to 'widgets/exline.go')
-rw-r--r-- | widgets/exline.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/exline.go b/widgets/exline.go index de652ba6..ae83933a 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -1,8 +1,8 @@ package widgets import ( - "github.com/mattn/go-runewidth" "github.com/gdamore/tcell" + "github.com/mattn/go-runewidth" "git.sr.ht/~sircmpwn/aerc2/lib/ui" ) @@ -21,7 +21,7 @@ type ExLine struct { onInvalidate func(d ui.Drawable) } -func NewExLine(commit func (cmd string), cancel func()) *ExLine { +func NewExLine(commit func(cmd string), cancel func()) *ExLine { return &ExLine{ cancel: cancel, commit: commit, @@ -43,7 +43,7 @@ func (ex *ExLine) Draw(ctx *ui.Context) { ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) ctx.Printf(0, 0, tcell.StyleDefault, ":%s", string(ex.command)) cells := runewidth.StringWidth(string(ex.command[:ex.index])) - ctx.SetCursor(cells + 1, 0) + ctx.SetCursor(cells+1, 0) } func (ex *ExLine) insert(ch rune) { |