@elextr OH, sorry, I'm using 1.38 and did not notice head already contains a fix.
I'm the maintainer of hte FreeBSD geany ports, and was trying to build a failure in the ports tree.
I'll import the required patches to fix it there.
Thanks for pointing this out.