mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Filter out the empty expressions when hovering.
This commit is contained in:
parent
6c738e9dcb
commit
1c8774e46c
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ public class DebugTextHover implements ITextHover
|
|||
return null;
|
||||
|
||||
String expression = document.get( hoverRegion.getOffset(), hoverRegion.getLength() );
|
||||
if ( expression == null )
|
||||
return null;
|
||||
expression = expression.trim();
|
||||
if ( expression.length() == 0 )
|
||||
return null;
|
||||
List targetList = new ArrayList( targets.length );
|
||||
for ( int i = 0; i < targets.length; i++ )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue