Add search and replace

This commit is contained in:
Zachary Yedidia
2019-01-15 22:45:28 -05:00
parent df968db5a3
commit a3885bfb12
5 changed files with 212 additions and 27 deletions

View File

@@ -146,16 +146,11 @@ func (i *InfoBuf) DonePrompt(canceled bool) {
h[len(h)-1] = resp
}
i.PromptCallback = nil
i.EventCallback = nil
}
if i.EventCallback != nil {
i.EventCallback = nil
}
i.Replace(i.Start(), i.End(), []byte{})
}
if i.YNCallback != nil && hadYN {
i.YNCallback(i.YNResp, canceled)
i.YNCallback = nil
}
}