Josh Triplett <[EMAIL PROTECTED]> wrote Fri, Jun 01, 2007:
> tig displays log entries while they load.  While still loading log entries,
> any navigation keys (up, down, page up, page down) will cause tig to move up
> or down repeatedly.  As soon as the log entries finish loading, the navigation
> keys work normally.

This sounds somewhat like the problems detailed for bug #410394,
however, I think what you are experiencing is the results of the "very
stupid" incremental loading currently implemented in tig. It doesn't use
non-blocking I/O and select(), but rather continously reads a few lines
of git command output before checking for keyboard input. Obviously, if
one of the read are to block just a little, multiple key combinations
typed by the user may be recorded leading later to repeated moving.

Maybe you can give me more information about in which situations you
experience this bug. I don't use tig on very big repositories so this
can be the cause for this bug not hitting me very often. Of course,
applying a log filter such as '-Spattern', which will cause git command
output to only slowly be available makes this very noticable.

Anyway, the read fix I believe should be to change tig to use
non-blocking I/O. Will add to the TODO file.

-- 
Jonas Fonseca


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to