> Sound like restoring the cursor position after drawing some text might
> be missing.  Do you have a simple script to show the problem?

Repro at the end of this message. Couple of things to note:

* I've had to add redraws in order to reliably draw the popup (compare
popup_beval_example)
* 'help popup_beval()' I think has a slight error; it references
pos.lnum, but this should be pos.row

To repro in gvim:

gvim -u repro.vim repro.vim

Then hover the mouse over any text such that the popup window itself
overlaps some text. Might require some random attempts - I'm not quite
sure what conditions cause this.

You should see the described behaviour.

Thanks

========

set nocompatible
set nobackup
set nowritebackup
set noswapfile
set mouse=a
set ttymouse=sgr
set balloondelay=250
set ballooneval balloonevalterm
set balloonexpr=BalloonExpr()
set balloondelay=250
let s:winid = 0

func BalloonExpr()
  if s:winid
    call popup_close(s:winid)
    let s:winid = 0
    redraw
  endif
  let pos = screenpos(v:beval_winnr, v:beval_lnum, v:beval_col)
  let s:winid = popup_create(["hello"], {
        \ "pos": "topleft",
        \ "line": pos.row + 1,
        \ "col": pos.col,
        \ "mousemoved": "WORD",
        \ "moved":"any"
        \})
  redraw
  return ''
endfunc

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CACoUkn6%3D_m2FZsbdVCf%3DwyG2xJgtGvYPMEvJCyNwC3Rfar7apg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui