1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Handled some errors

This commit is contained in:
mjarkk
2018-10-20 19:44:56 +02:00
parent 1be44eae84
commit ac03665df3
3 changed files with 15 additions and 3 deletions

View File

@ -85,6 +85,7 @@ func (c *OSCommand) RunCommandWithOutputLive(command string, output func(string)
go func() {
// Regex to cleanup the command output
// sometimes the output words include unneeded spaces at eatch end of the string
re := regexp.MustCompile(`(^\s*)|(\s*$)`)
scanner := bufio.NewScanner(tty)