Commits

ZyX_I committed 35e56cd

ftplugin/aurumlog: Fixed Prev/Next mappings

  • Participants
  • Parent commits 06f7890

Comments (0)

Files changed (1)

File ftplugin/aurumlog.vim

     let bvar=s:_r.bufvars[bufnr('%')]
     let repo=bvar.repo
     let hex=bvar.getblock(bvar)[2]
+    let oldhex=hex
     let n=abs(a:n)
     let direction=((a:n>0)?('parents'):('children'))
     let tocheck=[]
             break
         endif
     endwhile
-    if lastfoundhex is# hex
+    if lastfoundhex is# oldhex
         call s:_f.throw('no'.((a:n>0)?('prev'):('next')), hex)
     endif
     return "\<C-\>\<C-n>".(bvar.csstarts[lastfoundhex]+1).'gg'