mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
do not refresh patch panel unless commit files panel is the current side panel
This commit is contained in:
@ -8,6 +8,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/template"
|
||||
@ -382,3 +383,9 @@ func SafeWithError(f func() error) error {
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func StackTrace() string {
|
||||
buf := make([]byte, 10000)
|
||||
n := runtime.Stack(buf, false)
|
||||
return fmt.Sprintf("%s\n", buf[:n])
|
||||
}
|
||||
|
Reference in New Issue
Block a user