Skip to content

Commit

Permalink
Fix int to string vet error
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Aug 14, 2020
1 parent cf8f5a8 commit 85ccd89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cointop/common/gizak/termui/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package termui

import (
"fmt"
"path"
"strconv"
"sync"
Expand Down Expand Up @@ -48,7 +49,7 @@ func evtKbd(e termbox.Event) EvtKbd {

if e.Key <= 0x7F {
pre = "C-"
k = string('a' - 1 + int(e.Key))
k = fmt.Sprintf("%v", 'a'-1+int(e.Key))
kmap := map[termbox.Key][2]string{
termbox.KeyCtrlSpace: {"C-", "<space>"},
termbox.KeyBackspace: {"", "<backspace>"},
Expand Down

0 comments on commit 85ccd89

Please sign in to comment.