mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-26 02:17:05 +09:00
remove carriage return from -clean prompt and fix broken logic (#2186)
This commit is contained in:
@@ -23,12 +23,9 @@ func shouldContinue() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if len(text) <= 1 {
|
||||
// default continue
|
||||
return true
|
||||
}
|
||||
text = strings.TrimRight(text, "\r\n")
|
||||
|
||||
return strings.ToLower(text)[0] == 'y'
|
||||
return len(text) == 0 || strings.ToLower(text)[0] == 'y'
|
||||
}
|
||||
|
||||
// CleanConfig performs cleanup in the user's configuration directory
|
||||
|
||||
Reference in New Issue
Block a user