Tuesday, September 9, 2025

Re: The screen is not updating after make

Yeah, I was going to hint at :redraw! as well.

Whenever my screen goes blank :redraw! fixes it.


Igbanam


On Tue, Sep 9, 2025 at 7:08 PM Marc Chantreux <mc@unistra.fr> wrote:
On Tue, Sep 09, 2025 at 12:21:32PM +0300, Riza Dindir wrote:
> I have a mapping like this:
>
> command! -nargs=* Make silent make! <args> | if len(getqflist()) > 0 | copen |
> endif

> Whenever I do call this command, the screen does not update. The screen is
> blank (where once was the source code displayed). and the quickfix window is
> sometimes left blank too.

how about:

command -nargs=* Make {
        silent make! <args>
        if len(getqflist()) > 0
                copen
        endif
        redraw!
}

> Does anybody have the same problem?

not since I discovered redraw!

regards

--
Marc Chantreux

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/aMB7FMtP50wtOpNI%40prometheus.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAOmRJrdgxVSTsEEVW7%2B4f9_nwm%3DsHn4AtYqibJ1DxAnvTsgrfw%40mail.gmail.com.

No comments: