fixed PY-6868 No parameter info popup for parameter lists without closed parentheses

This commit is contained in:
Ekaterina Tuzova
2012-07-26 20:21:11 +04:00
parent 05faf3b52b
commit 8472b6cb33
@@ -71,7 +71,7 @@ public class PyParameterInfoHandler implements ParameterInfoHandler<PyArgumentLi
int alleged_cursor_offset = context.getOffset(); // this is already shifted backwards to skip spaces
final TextRange arglistTextRange = arglist.getTextRange();
if (!arglistTextRange.contains(alleged_cursor_offset) && arglistTextRange.getLength() != 1) {
if (!arglistTextRange.contains(alleged_cursor_offset) && arglist.getText().endsWith(")")) {
context.removeHint();
return;
}