summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-12-25 07:50:47 +0000
committercorvid <corvid@lavabit.com>2009-12-25 07:50:47 +0000
commit6d2c86972555399632a16ffb9e75a7a97b523ddc (patch)
tree98d77d797d221b72bc11f57e69a11df7edf8aec5
parent2f97631c83b2f0c01246f8241eca936941ce6810 (diff)
adjust findLineIndex
I noticed that when I was highlighting text in line n, Dillo was also redrawing line n-1. Incidentally, it seems that the default arrow cursor points with the tip of the black arrow itself, and not with the tip of the white border surrounding it.
-rw-r--r--dw/textblock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index d4cc9734..fae2613a 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1437,12 +1437,12 @@ int Textblock::findLineIndex (int y)
while ( step > 1 ) {
index = low + step;
if (index <= maxIndex &&
- lineYOffsetWidgetI (index) < y)
+ lineYOffsetWidgetI (index) <= y)
low = index;
step = (step + 1) >> 1;
}
- if (low < maxIndex && lineYOffsetWidgetI (low + 1) < y)
+ if (low < maxIndex && lineYOffsetWidgetI (low + 1) <= y)
low++;
/*