mirror of
https://github.com/zu1k/nali.git
synced 2025-02-02 10:22:41 +08:00
fix: destroyed format
This commit is contained in:
parent
2072a5ce3d
commit
a40fa68240
@ -73,7 +73,7 @@ Find document on: https://github.com/zu1k/nali
|
||||
if line == "quit" || line == "exit" {
|
||||
return
|
||||
}
|
||||
_, _ = fmt.Fprintf(color.Output, "%s\n", entity.ParseLine(line).ColorString())
|
||||
_, _ = fmt.Fprintf(color.Output, "%s", entity.ParseLine(line).ColorString())
|
||||
}
|
||||
} else {
|
||||
_, _ = fmt.Fprintf(color.Output, "%s\n", entity.ParseLine(strings.Join(args, " ")).ColorString())
|
||||
|
@ -17,7 +17,7 @@ func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error) {
|
||||
if i+1 < len(data) && data[i] == '\r' && data[i+1] == '\n' {
|
||||
delimiterLen = 2
|
||||
}
|
||||
return i + delimiterLen, data[:i], nil
|
||||
return i + delimiterLen, data[:i+delimiterLen], nil
|
||||
}
|
||||
// If we're at EOF, we have a final, non-terminated line. Return it.
|
||||
if atEOF {
|
||||
|
Loading…
Reference in New Issue
Block a user