2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-14 18:12:57 +00:00

Fix int to string vet error

This commit is contained in:
Miguel Mota 2020-08-14 03:25:13 -07:00
parent cf8f5a8121
commit 85ccd89d06

View File

@ -5,6 +5,7 @@
package termui package termui
import ( import (
"fmt"
"path" "path"
"strconv" "strconv"
"sync" "sync"
@ -48,7 +49,7 @@ func evtKbd(e termbox.Event) EvtKbd {
if e.Key <= 0x7F { if e.Key <= 0x7F {
pre = "C-" pre = "C-"
k = string('a' - 1 + int(e.Key)) k = fmt.Sprintf("%v", 'a'-1+int(e.Key))
kmap := map[termbox.Key][2]string{ kmap := map[termbox.Key][2]string{
termbox.KeyCtrlSpace: {"C-", "<space>"}, termbox.KeyCtrlSpace: {"C-", "<space>"},
termbox.KeyBackspace: {"", "<backspace>"}, termbox.KeyBackspace: {"", "<backspace>"},