Hello Yevgen, I'm the package maintainer for medit in debian. First of all, congrats for this great software, is really useful. Well, I forward you this bug we recieved a year ago. I tried to investigate but for me it's very complex, too.
I see you have a bug tracker at sourceforge, if you prefer I can open a new entry there. There are more bugs so with you answer I'll proceed in the manner you're more comfortable, by email or by bug tracker. Thanks and regards
pgpRRoRTaT4ne.pgp
Description: PGP signature