Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Execute shell commands in separate thread #23
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
@frantic, I was testing your code tonight, there is a small issue.
The fix to the undo had originally created an issue ( #26 ) where there was a flicker when adding/removing lines. It was because there was a small delay (the timeout). I was bugged by the flicker so I figured out a fix, if we used a window command instead of a text command, we don't have a speed problem anymore (so we don't need the timeout) and the undo does not break.
Ok so when I merge this into that fix, the flicker comes back. I think it is because there is a delay when waiting for the callback from the second thread.
To reproduce, insert a few lines, then delete all the inserted lines, watch the icons - you will see the "+" marks flicker into the wrong spot for a split second while waiting, then go to the correct spots.
It is minor but it is enough to distract me while I am coding.