keep statusline within window width. @oni-link fix #858

PR #866
ref #858