mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-25 23:13:22 +00:00
fix: dont refresh log on regex search error
This commit is contained in:
parent
ef4c925e37
commit
e676c095c2
@ -240,7 +240,7 @@ func NewInstance() *Instance {
|
||||
var err error
|
||||
rl.regexSearch, err = regexp.Compile("(?i)" + string(rl.tfLine))
|
||||
if err != nil {
|
||||
rl.RefreshPromptLog(err.Error())
|
||||
//rl.RefreshPromptLog(err.Error())
|
||||
rl.infoText = []rune(Red("Failed to match search regexp"))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user