Patch 8.1.0447
Problem:    GUI scrollbar test fails with Athena and Motif.
Solution:   When not using on-the-fly scrolling call normal_cmd().
Files:      src/evalfunc.c, src/ex_docmd.c, src/proto/ex_docmd.pro


*** ../vim-8.1.0446/src/evalfunc.c      2018-09-30 21:43:17.183693376 +0200
--- src/evalfunc.c      2018-10-02 16:21:11.584227329 +0200
***************
*** 3588,3594 ****
  
                if (!dangerous)
                    ++ex_normal_busy;
!               exec_normal(TRUE, TRUE);
                if (!dangerous)
                    --ex_normal_busy;
  
--- 3588,3594 ----
  
                if (!dangerous)
                    ++ex_normal_busy;
!               exec_normal(TRUE, FALSE, TRUE);
                if (!dangerous)
                    --ex_normal_busy;
  
***************
*** 13233,13238 ****
--- 13233,13242 ----
        return;
      }
      gui_drag_scrollbar(sb, value, dragging);
+ # ifndef USE_ON_FLY_SCROLL
+     // need to loop through normal_cmd() to handle the scroll events
+     exec_normal(FALSE, TRUE, FALSE);
+ # endif
  }
  #endif
  
*** ../vim-8.1.0446/src/ex_docmd.c      2018-09-30 21:43:17.187693348 +0200
--- src/ex_docmd.c      2018-10-02 16:22:09.711805347 +0200
***************
*** 10471,10491 ****
  {
      /* Stuff the argument into the typeahead buffer. */
      ins_typebuf(cmd, remap, 0, TRUE, silent);
!     exec_normal(FALSE, FALSE);
  }
  
  /*
   * Execute normal_cmd() until there is no typeahead left.
   */
      void
! exec_normal(int was_typed, int may_use_terminal_loop UNUSED)
  {
      oparg_T   oa;
  
      clear_oparg(&oa);
      finish_op = FALSE;
!     while ((!stuff_empty() || ((was_typed || !typebuf_typed())
!                   && typebuf.tb_len > 0)) && !got_int)
      {
        update_topline_cursor();
  #ifdef FEAT_TERMINAL
--- 10471,10494 ----
  {
      /* Stuff the argument into the typeahead buffer. */
      ins_typebuf(cmd, remap, 0, TRUE, silent);
!     exec_normal(FALSE, FALSE, FALSE);
  }
  
  /*
   * Execute normal_cmd() until there is no typeahead left.
+  * When "use_vpeekc" is TRUE use vpeekc() to check for available chars.
   */
      void
! exec_normal(int was_typed, int use_vpeekc, int may_use_terminal_loop UNUSED)
  {
      oparg_T   oa;
  
      clear_oparg(&oa);
      finish_op = FALSE;
!     while ((!stuff_empty()
!               || ((was_typed || !typebuf_typed()) && typebuf.tb_len > 0)
!               || (use_vpeekc && vpeekc() != NUL))
!           && !got_int)
      {
        update_topline_cursor();
  #ifdef FEAT_TERMINAL
*** ../vim-8.1.0446/src/proto/ex_docmd.pro      2018-09-15 15:42:36.501547749 
+0200
--- src/proto/ex_docmd.pro      2018-10-02 16:21:31.332084040 +0200
***************
*** 59,65 ****
  void restore_current_state(save_state_T *sst);
  void ex_normal(exarg_T *eap);
  void exec_normal_cmd(char_u *cmd, int remap, int silent);
! void exec_normal(int was_typed, int may_use_terminal_loop);
  int find_cmdline_var(char_u *src, int *usedlen);
  char_u *eval_vars(char_u *src, char_u *srcstart, int *usedlen, linenr_T 
*lnump, char_u **errormsg, int *escaped);
  char_u *expand_sfile(char_u *arg);
--- 59,65 ----
  void restore_current_state(save_state_T *sst);
  void ex_normal(exarg_T *eap);
  void exec_normal_cmd(char_u *cmd, int remap, int silent);
! void exec_normal(int was_typed, int use_vpeekc, int may_use_terminal_loop);
  int find_cmdline_var(char_u *src, int *usedlen);
  char_u *eval_vars(char_u *src, char_u *srcstart, int *usedlen, linenr_T 
*lnump, char_u **errormsg, int *escaped);
  char_u *expand_sfile(char_u *arg);
*** ../vim-8.1.0446/src/version.c       2018-10-02 15:06:36.761478333 +0200
--- src/version.c       2018-10-02 16:22:59.479443571 +0200
***************
*** 794,795 ****
--- 794,797 ----
  {   /* Add new patch number below this line */
+ /**/
+     447,
  /**/

-- 
Birthdays are healthy.  The more you have them, the longer you live.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui