Patch 7.4.1748
Problem:    "gD" does not find match in first column of first line. (Gary
            Johnson)
Solution:   Accept match at the cursor.
Files:      src/normal.c, src/testdir/test_goto.vim, src/testdir/test_alot.vim


*** ../vim-7.4.1747/src/normal.c        2016-03-19 23:07:19.048790913 +0100
--- src/normal.c        2016-04-16 09:07:59.933871241 +0200
***************
*** 4228,4234 ****
      char_u    *ptr;
  
      if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
!           || find_decl(ptr, len, nchar == 'd', thisblock, 0) == FAIL)
        clearopbeep(oap);
  #ifdef FEAT_FOLDING
      else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
--- 4228,4235 ----
      char_u    *ptr;
  
      if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
!           || find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)
!                                                                     == FAIL)
        clearopbeep(oap);
  #ifdef FEAT_FOLDING
      else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
*** ../vim-7.4.1747/src/testdir/test_goto.vim   2016-04-16 09:12:27.251078905 
+0200
--- src/testdir/test_goto.vim   2016-04-16 09:03:10.208896840 +0200
***************
*** 0 ****
--- 1,10 ----
+ " Test commands that jump somewhere.
+ 
+ func Test_geedee()
+   new
+   call setline(1, ["Filename x;", "", "int Filename", "int func() {", 
"Filename y;"])
+   /y;/
+   normal gD
+   call assert_equal(1, line('.'))
+   quit!
+ endfunc
*** ../vim-7.4.1747/src/testdir/test_alot.vim   2016-04-14 17:15:47.223835356 
+0200
--- src/testdir/test_alot.vim   2016-04-16 09:03:27.668714524 +0200
***************
*** 12,17 ****
--- 12,18 ----
  source test_fnamemodify.vim
  source test_file_perm.vim
  source test_glob2regpat.vim
+ source test_goto.vim
  source test_help_tagjump.vim
  source test_join.vim
  source test_lispwords.vim
*** ../vim-7.4.1747/src/version.c       2016-04-15 21:47:50.724171696 +0200
--- src/version.c       2016-04-16 09:04:59.539755195 +0200
***************
*** 750,751 ****
--- 750,753 ----
  {   /* Add new patch number below this line */
+ /**/
+     1748,
  /**/

-- 
GALAHAD: No, please.  Please! I can defeat them!  There's only a hundred.
GIRLS:   He will beat us easily.  We haven't a chance.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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