mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Merge
This commit is contained in:
@@ -93,10 +93,10 @@ func (h *InfoPane) HandleEvent(event tcell.Event) {
|
|||||||
done := h.DoKeyEvent(ke)
|
done := h.DoKeyEvent(ke)
|
||||||
hasYN := h.HasYN
|
hasYN := h.HasYN
|
||||||
if e.Key() == tcell.KeyRune && hasYN {
|
if e.Key() == tcell.KeyRune && hasYN {
|
||||||
if e.Rune() == 'y' && hasYN {
|
if (e.Rune() == 'y' || e.Rune() == 'Y') && hasYN {
|
||||||
h.YNResp = true
|
h.YNResp = true
|
||||||
h.DonePrompt(false)
|
h.DonePrompt(false)
|
||||||
} else if e.Rune() == 'n' && hasYN {
|
} else if (e.Rune() == 'n' || e.Rune() == 'N') && hasYN {
|
||||||
h.YNResp = false
|
h.YNResp = false
|
||||||
h.DonePrompt(false)
|
h.DonePrompt(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user