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

Wait for ExecCommand before colorizing #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mheinzler
Copy link

ExecCommand uses a short timeout internally to append the data to the view. If this timeout isn't fired fast enough the regions can't be colored. A simple solution is to also add a timeout to the colorization.

This could still be improved a little by checking whether the regions are within the view size, and only use a timeout if they are not. That would remove some rare flickering introduced by the timeout.

ExecCommand uses a short timeout internally to append the data to the view. If this timeout isn't fired fast enough the regions can't be colored. A simple solution is to also add a timeout to the colorization.

This could still be improved a little by checking whether the regions are within the view size, and only use a timeout if they are not. That would remove some rare flickering introduced by the timeout.
@jfcherng
Copy link
Collaborator

Disclaimer: I am not using the on_data mode so I wont test and merge this PR.

I make this disclaimer just because it looks like I am the only active maintainer in the repo.

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

Successfully merging this pull request may close these issues.

2 participants