[vim/vim] Option to hide cursor in overlapping popup (Discussion #14227)

40 views
Skip to first unread message

Maxim Kim

unread,
Mar 18, 2024, 7:02:28 AM3/18/24
to vim/vim, Subscribed

I remember Bram was strict about having cursor always visible if popup overlaps it.

But it was probably before ppl figured out how to fake input boxes using popups. And if you have it faked, there are 2 visible cursors that is less than ideal.

Would it make sense to have a popup option to hide cursor if it is overlapped?

image.png (view on web)


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227@github.com>

Shougo

unread,
Apr 7, 2024, 9:02:06 PM4/7/24
to vim/vim, Subscribed

#14436 can fix the problem.


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9039623@github.com>

Shougo

unread,
Apr 9, 2024, 2:02:00 AM4/9/24
to vim/vim, Subscribed

You can use set t_ve= in CUI Vim. It does not work for GVim. But in GVim Cursor highlight works instead.


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9054474@github.com>

Maxim Kim

unread,
Apr 9, 2024, 4:00:25 AM4/9/24
to vim/vim, Subscribed

yes, indeed. thx!


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9055628@github.com>

Shane-XB-Qian

unread,
Apr 9, 2024, 6:45:44 AM4/9/24
to vim/vim, Subscribed

i am curious where that second cursor came from, maybe that's not a pure vim popup,
if i guess correctly, then that may originally can hide the cursor by raw esc code already.


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9057524@github.com>

Maxim Kim

unread,
Apr 9, 2024, 7:00:42 AM4/9/24
to vim/vim, Subscribed

That is a fake cursor in a pure vim popup.


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9057667@github.com>

Maxim Kim

unread,
Apr 9, 2024, 7:05:56 AM4/9/24
to vim/vim, Subscribed

Closed #14227 as resolved.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/discussion_event/1213264@github.com>

Maxim Kim

unread,
Apr 9, 2024, 7:05:57 AM4/9/24
to vim/vim, Subscribed

I have workaround-ed it with

    # hide cursor
    set t_ve=
    var gui_cursor = hlget("Cursor")
    hlset([{name: 'Cursor', cleared: true}])

and

    # restore cursor
    set t_ve&
    if hlget("Cursor")[0]->get('cleared', false)
        hlset(gui_cursor)
    endif


Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/14227/comments/9057701@github.com>

Reply all
Reply to author
Forward
0 new messages