diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-07 16:58:17 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-07 16:58:17 +0900 |
| commit | 4bedd33c593ab0cb750e17c42750048904fdf7fb (patch) | |
| tree | 10ef749a51b1b947f5bb34eb154c5f992a50edbb /src/ansi.go | |
| parent | c5fb0c43f9222e72ff00290162b68e34a8f0d5d7 (diff) | |
| download | fzf-4bedd33c593ab0cb750e17c42750048904fdf7fb.tar.gz | |
Refactor the code to remove global variables
Diffstat (limited to 'src/ansi.go')
| -rw-r--r-- | src/ansi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.go b/src/ansi.go index dbe4fd66..5f7c8be4 100644 --- a/src/ansi.go +++ b/src/ansi.go @@ -312,7 +312,7 @@ func parseAnsiCode(s string, delimiter byte) (int, byte, string) { // Inlined version of strconv.Atoi() that only handles positive // integers and does not allocate on error. code := 0 - for _, ch := range sbytes(s) { + for _, ch := range stringBytes(s) { ch -= '0' if ch > 9 { return -1, delimiter, remaining |
