Fix bug #14575 with window-specific overlays with line-prefix or wrap-prefix.