aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-09-18 00:42:11 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-09-18 00:42:11 +0530
commit16f2ffc29d51f209428e5650759b80095a2d1527 (patch)
tree35f9bbf740ad7bfd0c2c20a8196baa5cf3de38cd /output.cpp
parent86a978d9ee80f5a97c3fba822c6b95fdc60f6a22 (diff)
Remove ellipsis and newlines from long lines
Diffstat (limited to 'output.cpp')
-rw-r--r--output.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/output.cpp b/output.cpp
index b061693e..9ce7f7ab 100644
--- a/output.cpp
+++ b/output.cpp
@@ -489,43 +489,6 @@ void writestr( const wchar_t *str )
delete[] buffer;
}
-
-void writestr_ellipsis( const wchar_t *str, int max_width )
-{
- int written=0;
- int tot;
-
- CHECK( str, );
-
- tot = my_wcswidth(str);
-
- if( tot <= max_width )
- {
- writestr( str );
- return;
- }
-
- while( *str != 0 )
- {
- int w = fish_wcwidth( *str );
- if( written+w+fish_wcwidth( ellipsis_char )>max_width )
- {
- break;
- }
- written+=w;
- writech( *(str++) );
- }
-
- written += fish_wcwidth( ellipsis_char );
- writech( ellipsis_char );
-
- while( written < max_width )
- {
- written++;
- writestr( L" " );
- }
-}
-
int write_escaped_str( const wchar_t *str, int max_len )
{
@@ -546,8 +509,6 @@ int write_escaped_str( const wchar_t *str, int max_len )
writech( out[i] );
written += fish_wcwidth( out[i] );
}
- writech( ellipsis_char );
- written += fish_wcwidth( ellipsis_char );
for( i=written; i<max_len; i++ )
{