aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 07:17:34 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 07:17:34 +0000
commitc5a2843453660a21780eb4c791b3c399a9702ddf (patch)
tree43ed7b2e2abf3f5339c1e43953f3d6f3fbbcc0ce /main.c
parenta9952ded1e6eaadec4c079b853a30db6e10ce2fe (diff)
downloaddzen-c5a2843453660a21780eb4c791b3c399a9702ddf.tar.gz
dzen-c5a2843453660a21780eb4c791b3c399a9702ddf.zip
make '-u' position independend
git-svn-id: http://dzen.googlecode.com/svn/trunk@137 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7e01a4f..c29da89 100644
--- a/main.c
+++ b/main.c
@@ -685,7 +685,6 @@ main(int argc, char *argv[]) {
}
}
else if(!strncmp(argv[i], "-u", 3)){
- if(dzen.slave_win.max_lines)
dzen.tsupdate = True;
}
else if(!strncmp(argv[i], "-p", 3)) {
@@ -749,6 +748,9 @@ main(int argc, char *argv[]) {
#endif
);
+ if(dzen.tsupdate && !dzen.slave_win.max_lines)
+ dzen.tsupdate = False;
+
if(!dzen.title_win.width)
dzen.title_win.width = dzen.slave_win.width;