Fix int to string vet error

pull/61/head
Miguel Mota 4 years ago
parent cf8f5a8121
commit 85ccd89d06

@ -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>"},

Loading…
Cancel
Save