mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
Add padding to relocate func (fixes weird scrolling behavior)
This commit is contained in:
@@ -121,7 +121,7 @@ func Search(searchStr string, v *View, down bool) {
|
||||
v.Cursor.curSelection[0] = charPos + match[0]
|
||||
v.Cursor.curSelection[1] = charPos + match[1]
|
||||
v.Cursor.x, v.Cursor.y = FromCharPos(charPos+match[1]-1, v.Buf)
|
||||
if v.Relocate() {
|
||||
if v.Relocate(4) {
|
||||
v.matches = Match(v)
|
||||
}
|
||||
lastSearch = searchStr
|
||||
|
||||
Reference in New Issue
Block a user