1
0
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:
mzz2017 2022-08-14 22:54:24 +08:00
parent 2072a5ce3d
commit a40fa68240
2 changed files with 2 additions and 2 deletions

View File

@ -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())

View File

@ -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 {