vte r2078 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2078 - in trunk: . src
- Date: Tue, 5 Aug 2008 05:51:08 +0000 (UTC)
Author: behdad
Date: Tue Aug 5 05:51:08 2008
New Revision: 2078
URL: http://svn.gnome.org/viewvc/vte?rev=2078&view=rev
Log:
2008-08-05 Behdad Esfahbod <behdad gnome org>
Bug 545924 â tab characters not handled correctly after ncurses clear
Patch from Patryk Zawadzki
* src/vteseq.c (vte_sequence_handler_ta): Ignore empty cells at end of
line.
Modified:
trunk/ChangeLog
trunk/src/vteseq.c
Modified: trunk/src/vteseq.c
==============================================================================
--- trunk/src/vteseq.c (original)
+++ trunk/src/vteseq.c Tue Aug 5 05:51:08 2008
@@ -2448,6 +2448,22 @@
* Otherwise, just append empty cells that will show up
* as a space each.
*/
+
+ /* Get rid of trailing empty cells: bug 545924 */
+ if (rowdata->cells->len > col)
+ {
+ struct vte_charcell *pcell;
+ int i;
+ i = rowdata->cells->len;
+ pcell = &g_array_index(rowdata->cells, struct vte_charcell, i - 1);
+ while ((i > col) && (pcell->c == 0))
+ {
+ i--;
+ pcell = &g_array_index(rowdata->cells, struct vte_charcell, i - 1);
+ }
+ g_array_set_size(rowdata->cells, i);
+ }
+
if (rowdata->cells->len <= col)
{
struct vte_charcell cell;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]