Don't comment global content unless it is Conf
commit4089741340522053319969975cebba19c3fce52b
authorJiří Techet <techet@gmail.com>
Thu, 5 Oct 2023 17:39:03 +0000 (5 19:39 +0200)
committerJiří Techet <techet@gmail.com>
Fri, 6 Oct 2023 16:41:36 +0000 (6 18:41 +0200)
treeb02a894d0fcd9adf63a3e7502b1f4e433acc5707
parentb8d0f509d3fd52e90abae669a9df2f823aeada12
Don't comment global content unless it is Conf

When using Tools->Config Files to open a user file that doesn't exist.
This fixes the first line of geany.css being wrongly uncommented
(and the rest unchanged) due to toggle comment being used and CSS
not having a line comment.

(Verbatim copy-paste of Nick's description of the previous version
of the patch, thanks :-)
src/ui_utils.c