mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
Use the new string scanner everywhere
This commit is contained in:
parent
b8ce441453
commit
f42090766a
7 changed files with 8 additions and 12 deletions
|
|
@ -3,7 +3,6 @@
|
|||
package hyperlinked_grep
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
|
@ -42,7 +41,7 @@ func get_options_for_rg() (expecting_args map[string]bool, alias_map map[string]
|
|||
err = fmt.Errorf("Failed to execute rg: %w", err)
|
||||
return
|
||||
}
|
||||
scanner := bufio.NewScanner(strings.NewReader(utils.UnsafeBytesToString(raw)))
|
||||
scanner := utils.NewLineScanner(utils.UnsafeBytesToString(raw))
|
||||
options_started := false
|
||||
expecting_args = make(map[string]bool, 64)
|
||||
alias_map = make(map[string]string, 52)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue