Refactoring bufwin

log_winnr, stat_winnr ... are added.
Fix: log window width is sometimes wrong
Fix: find_index cause E684
Uncommitted message appears at exact position
Fix: Test fails when terminal size is too small