Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight doesn't work if second tag is not visible on the screen #4

Open
jandudulski opened this issue Nov 23, 2011 · 1 comment
Open

Comments

@jandudulski
Copy link

Highlight doesn't work if second tag is not visible on the screen. Even if you scroll/resize to catch both tags on screen, you have to move cursor from tag and on again to get the match.

@gregsexton
Copy link
Owner

This is by design I'm afraid. The reason for this is so that the search doesn't take too long. The matching logic is executed every time the cursor is moved so speed is important. This is also the way MatchParen works.

You are not the first person to request this but I'm still sat on the fence as to whether to implement it. For now you can change line 65 from

let stopline = a:forwards ? line('w$') : line('w0')

to

let stopline = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants