JumpToMatch() breaks the jump list
Bug #648634 reported by
Manuel Pégourié-Gonnard
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_
xmap <buffer> % <Plug>LatexBox_
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.