Juergen Jottkaerr wrote:

> On 3 Dez., 22:20, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> > Patch 7.1.168 (extra)
> > Problem:    Win32 GUI: Since patch 7.1.095, when the Vim window does not 
> > have
> >             focus, clicking in it doesn't position the cursor. (Juergen
> >             Kraemer)
> > Solution:   Don't reset s_button_pending just after receiving focus.
> > Files:      src/gui_w48.c
> 
> clicking into the text area of Vim works correctly now, but there is
> still a
> problem with clicking inside the (right) scrollbar. Here's how to
> reproduce it:
> 
>   gvim -u NONE - U NONE
>   :let i = 0
>   :while i < 100
>   :  let i += 1
>   :  put ='Line ' . i
>   :endwhile
>   :normal ggdd
>   :set lines=20
> 
> Now move focus to a different application and get back to Vim by
> clicking in
> the right scrollbar just below the slider: the slider is moved down,
> but
> line 1 is still the top line. Click again just below the slider: the
> slider
> is moved again and now line 35 is the top line -- lines 20 to 34 have
> been
> jumped over have and never been displayed.
> 
> If instead of clicking a second time you enter  Lj  in normal mode,
> line 20
> is moved into view *and* the position of the scrollbar slider is
> corrected.
> 
> Can you have a look at this?

I see the problem.  It's not obvious how to solve this.  One more item
for the todo list.

-- 
Wizards had always known that the act of observation changed the thing that
was observed, and sometimes forgot that it also changed the observer too.
                        Terry Pratchett  -  Interesting times

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui