Skip to content

Commit f1170f9

Browse files
committed
Fix compiling on Go 1.15
Fixes mislav#2616
1 parent 21c4b49 commit f1170f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/format.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package ui
22

33
import (
4+
"fmt"
45
"regexp"
56
"strconv"
67
"strings"
@@ -114,7 +115,7 @@ func (f *expander) expandSpecialChar(firstChar byte, format string) (expand stri
114115
case 'x':
115116
if len(format) >= 2 {
116117
if v, err := strconv.ParseInt(format[:2], 16, 32); err == nil {
117-
return string(v), format[2:], true
118+
return fmt.Sprintf("%c", v), format[2:], true
118119
}
119120
}
120121
case '+':

0 commit comments

Comments
 (0)