changeset 22990:307bab4c9e63

Correct the comments, and some position-calculation when the buddylist is not showing.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 17 May 2008 16:41:16 +0000
parents adde385c7904
children 2a79e13aef44
files finch/libgnt/wms/irssi.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/wms/irssi.c	Sat May 17 16:40:27 2008 +0000
+++ b/finch/libgnt/wms/irssi.c	Sat May 17 16:41:16 2008 +0000
@@ -1,8 +1,8 @@
 /**
  * 1. Buddylist is aligned on the left.
  * 2. The rest of the screen is split into MxN grid for conversation windows.
- * 	- M = irssi-split-h in ~/.gntrc:[general]
- * 	- N = irssi-split-v in ~/.gntrc:[general]
+ * 	- M = split-h in ~/.gntrc:[irssi]
+ * 	- N = split-v in ~/.gntrc:[irssi]
  *	- Press alt-shift-k/j/l/h to move the selected window to the frame
  *	  above/below/left/right of the current frame.
  * 3. All the other windows are always centered.
@@ -52,7 +52,8 @@
 	rx = irssi->buddylistwidth;
 	if (hor)
 		rx += hor * width;
-	rx++;
+	if (rx)
+		rx++;
 
 	ry = 0;
 	if (vert)