aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-07-22 13:22:54 +0000
committernyamatongwe <devnull@localhost>2005-07-22 13:22:54 +0000
commitbf2391c49538127ffd4df3382b71822d17113015 (patch)
treefde10d0bb006b2ce3317e7d5ada81f5b5db4d7fb /src
parent6ab67da6e04a68d4b979b33fd02c3de7746386a0 (diff)
downloadscintilla-mirror-bf2391c49538127ffd4df3382b71822d17113015.tar.gz
Ensure down arrow works for initial call.
Diffstat (limited to 'src')
-rw-r--r--src/CallTip.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index fbbe8f142..80fd55d7b 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -104,12 +104,11 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
surface->Polygon(pts, sizeof(pts) / sizeof(pts[0]),
colourBG.allocated, colourBG.allocated);
}
- } else {
- if (s[startSeg] == '\001') {
- rectUp = rcClient;
- } else {
- rectDown = rcClient;
- }
+ }
+ if (s[startSeg] == '\001') {
+ rectUp = rcClient;
+ } else if (s[startSeg] == '\002') {
+ rectDown = rcClient;
}
} else {
xEnd = x + surface->WidthText(font, s+startSeg, endSeg - startSeg);