JumpToMatch() breaks the jump list

Bug #648634 reported by Manuel Pégourié-Gonnard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vim LaTeX Box
New
Undecided
Unassigned

Bug Description

Hi,

When the mappings

nmap <buffer> % <Plug>LatexBox_JumpToMatch
xmap <buffer> % <Plug>LatexBox_JumpToMatch

are active, the jump list doesn't work as expected, ie ^O doesn't take the cursor back to when it was before the last jump. It happens whatever % bounced over: a LaTeX environment, or even a normal pair of braces.

I didn't take too much time to investigate, but I suspect JumpToMatch just doesn't count as a jump, so nothing is added to the jump list (one time ^O even took me back to the last file I edited...). The matchit plugin also extends %, but I never noticed any problem with the jump list using it, so it may serve as a source of inspiration for fixing this bug.

Thanks,
Manuel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.