Viewer Pane - Issue with txt file whose text starts with /*

Opus V13.7 x64 build 8942 with windows 11 pro.

I found when trying to view or double click to open a file whose text starts with /* the C code to start a multi line comment, dopus thinks its a picture (if double click) and if the viewer pane is active there is no display.

My current solution is to add a blank line at the beginning of the file.

John

Works fine here:

Yes it does.....
looking closer at my files is see.....

image

It seems a blank line after /* causes the issue I'm seeing.

BTW Thanks for the quick response

John

Could you zip a file with the problem and attach it?

Yes! Very weird!

Leo,
Should I assume @lxp's verification sufficient?

John

It needed more than just a blank line after the /*

I've reproduced it now but it would've been much quicker if someone just zipped a text file they already knew caused the problem. :slight_smile:

It's due to a bug in libWebP. I've coded a workaround which will be included in the first beta after 13.8.

Sorry, I assumed (apparently incorrectly) that @lxp 's post was adequate.

John