fixed small bug in sci_cb_show_calltip
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@341 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
dec031b3b5
commit
d5fb7376b7
@ -371,7 +371,7 @@ gboolean sci_cb_show_calltip(ScintillaObject *sci, gint pos)
|
||||
if (pos == -1)
|
||||
{ // position of '(' is unknown, so go backwards to find it
|
||||
pos = SSM(sci, SCI_GETCURRENTPOS, 0, 0);
|
||||
while (SSM(sci, SCI_GETCHARAT, pos, 0) != '(') pos--;
|
||||
while (pos >= 0 && SSM(sci, SCI_GETCHARAT, pos, 0) != '(') pos--;
|
||||
}
|
||||
|
||||
style = SSM(sci, SCI_GETSTYLEAT, pos, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user