Sublime Forum

C++ popup is formatted poorly

#1

Sublime Text shows a popup that is poorly formatted given the following C++ member variable declaration:

ns_event_t *m_eventMsg{nullptr};

The syntax above is C++11 and is (nearly) equivalent to m_eventMsg = nullptr;. Sublime shows that initialization but with extra line breaks… it thinks that it’s a block.

cpp-member-var

0 Likes

#2

Presuming it’s from LSP-clangd then it’s better to report/ask in https://github.com/sublimelsp/LSP-clangd, though the maintainer may hang around here.

0 Likes

#3

I think so (I do use clangd via LSP)… but I am not sure about this particular popup…

0 Likes

#4

image only LSP produces this popup at this moment.

0 Likes

#5

Thanks! I’ll ping the maintainer.

0 Likes