[PATCH (pkgs)] comint workaround for insert-before-markers