core: fix char displayed at the intersection of three windows (bug #39331)