diff --git a/uppsrc/ide/AssistDisplay.cpp b/uppsrc/ide/AssistDisplay.cpp index 38efcd22b..e7d0e387c 100644 --- a/uppsrc/ide/AssistDisplay.cpp +++ b/uppsrc/ide/AssistDisplay.cpp @@ -87,10 +87,12 @@ int PaintCpp(Draw& w, const Rect& r, int kind, const String& name, const String& #endif Vector n = ParsePretty(name, pretty); + bool hasdecltype = pretty.StartsWith("decltype"); int count = n.GetCount(); if(retval_last) { for(int i = 0; i < n.GetCount(); i++) - if(findarg(n[i].type, ITEM_NAME, ITEM_OPERATOR) >= 0 || pretty[n[i].pos] == '(') { + if(findarg(n[i].type, ITEM_NAME, ITEM_OPERATOR) >= 0 || + pretty[n[i].pos] == '(' && !hasdecltype) { PaintText(w, x, y, pretty, n, i, count - i, focuscursor, ink, false); count = i; while(count) { // remove trailing spaces