projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd5fd4
)
terminal: Init tab ruler after setting terminal->width
author
Kristian Høgsberg
<krh@bitplanet.net>
Sat, 23 Nov 2013 06:43:20 +0000
(22:43 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Sat, 23 Nov 2013 06:43:20 +0000
(22:43 -0800)
terminal_init_tabs() needs an accurate terminal->width to be able
to correctly initialize the tab ruler.
clients/terminal.c
patch
|
blob
|
history
diff --git
a/clients/terminal.c
b/clients/terminal.c
index
d09f94b
..
44f206b
100644
(file)
--- a/
clients/terminal.c
+++ b/
clients/terminal.c
@@
-814,7
+814,6
@@
terminal_resize_cells(struct terminal *terminal,
terminal->data = data;
terminal->data_attr = data_attr;
terminal->tab_ruler = tab_ruler;
- terminal_init_tabs(terminal);
terminal->start = 0;
}
@@
-822,6
+821,7
@@
terminal_resize_cells(struct terminal *terminal,
height - (terminal->height - terminal->margin_bottom);
terminal->width = width;
terminal->height = height;
+ terminal_init_tabs(terminal);
/* Update the window size */
ws.ws_row = terminal->height;