diff options
author | 2010-09-24 19:01:13 +0800 | |
---|---|---|
committer | 2010-09-24 19:01:13 +0800 | |
commit | 8910226d2f63db6fc7256b388187a249c9384478 (patch) | |
tree | aaecec50f9ff36915880085bd8caaabb33f9f013 /screen.c | |
parent | 04f58b1a31b3dcabe80d7b6fa9ab441c1909df12 (diff) |
only count the last line of promt when caculate prompt width
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -236,6 +236,10 @@ static int calc_prompt_width( wchar_t *prompt ) { res = next_tab_stop( res ); } + else if( prompt[j] == L'\n' ) + { + res = 0; + } else { /* |