AshokEmrys / conque

code.google.com/p/conque
0 stars 0 forks source link

Trailing spaces in content? #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Install trunk
2. Run :ConqueTerm bash
3. Execute 'echo foo'
4. Notice (via set hlsearch and then '/ ') that output contains enough tailing 
space characters to fill thee terminal width.

I expect a newline to appear after 'foo' and no trailing spaces to occur.

- Rhys

Original issue reported on code.google.com by rhys.ule...@gmail.com on 6 Mar 2011 at 6:30

GoogleCodeExporter commented 8 years ago
Thanks for the bug report. I checked in a fix for the next release. Until then 
you should be able to get rid of the trailing extra space by applying this 
change to autoload/conque_term/conque_screen.py

Index: autoload/conque_term/conque_screen.py
===================================================================
--- autoload/conque_term/conque_screen.py       (revision 448)
+++ autoload/conque_term/conque_screen.py       (working copy)
@@ -82,7 +82,7 @@
         # if line is past buffer end, add lines to buffer
         if real_line >= len(self.buffer):
             for i in range(len(self.buffer), real_line + 1):
-                self.append(' ' * self.screen_width)
+                self.append(' ')

         return u(self.buffer[real_line], 'utf-8')
     # }}}

Original comment by nicora...@gmail.com on 8 Mar 2011 at 1:10