Skip to content

Commit e1fd278

Browse files
author
SlavaRa
committed
Merge pull request #45 from SlavaRa/develop
fixes IsNumber
2 parents 87feec9 + bdd6c4c commit e1fd278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostfixCodeCompletion/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static bool IsHash(MemberModel target)
328328

329329
static bool IsNumber(MemberModel target)
330330
{
331-
var type = target.Type;
331+
var type = target is ClassModel ? ((ClassModel)target).QualifiedName : target.Type;
332332
if (type == ASContext.Context.Features.numberKey) return true;
333333
switch (PluginBase.MainForm.CurrentDocument.SciControl.ConfigurationLanguage)
334334
{

0 commit comments

Comments
 (0)