mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 22:52:51 +09:00
Fix bug with on reopen
This commit is contained in:
@@ -162,9 +162,9 @@ func (b *Buffer) ReOpen() {
|
||||
}
|
||||
|
||||
b.ModTime, _ = GetModTime(b.Path)
|
||||
b.Cursor.Relocate()
|
||||
b.IsModified = false
|
||||
b.Update()
|
||||
b.Cursor.Relocate()
|
||||
}
|
||||
|
||||
// Update fetches the string from the rope and updates the `text` and `lines` in the buffer
|
||||
|
||||
@@ -192,6 +192,8 @@ func (v *View) CloseBuffer() {
|
||||
func (v *View) ReOpen() {
|
||||
if v.CanClose("Continue? (yes, no, save) ") {
|
||||
v.Buf.ReOpen()
|
||||
v.Relocate()
|
||||
v.matches = Match(v)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user