mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
Use the new string scanner everywhere
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
package ask
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"io"
|
||||
"kitty/tools/cli/markup"
|
||||
@@ -323,7 +322,7 @@ func choices(o *Options) (response string, err error) {
|
||||
return err
|
||||
}
|
||||
if message != "" {
|
||||
scanner := bufio.NewScanner(strings.NewReader(message))
|
||||
scanner := utils.NewLineScanner(message)
|
||||
for scanner.Scan() {
|
||||
msg_lines = draw_long_text(int(sz.WidthCells), scanner.Text(), msg_lines)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user