Patch 8.2.3648
Problem:    "verbose pwd" is incorrect after dropping files on Vim.
Solution:   Set the chdir reason to "drop".
Files:      src/gui.c


*** ../vim-8.2.3647/src/gui.c   2021-11-22 17:18:41.194383494 +0000
--- src/gui.c   2021-11-22 17:21:01.389902301 +0000
***************
*** 5525,5530 ****
--- 5525,5531 ----
  drop_callback(void *cookie)
  {
      char_u    *p = cookie;
+     int               do_shorten = FALSE;
  
      // If Shift held down, change to first file's directory.  If the first
      // item is a directory, change to that directory (and let the explorer
***************
*** 5534,5544 ****
        if (mch_isdir(p))
        {
            if (mch_chdir((char *)p) == 0)
!               shorten_fnames(TRUE);
        }
        else if (vim_chdirfile(p, "drop") == OK)
!           shorten_fnames(TRUE);
        vim_free(p);
      }
  
      // Update the screen display
--- 5535,5550 ----
        if (mch_isdir(p))
        {
            if (mch_chdir((char *)p) == 0)
!               do_shorten = TRUE;
        }
        else if (vim_chdirfile(p, "drop") == OK)
!           do_shorten = TRUE;
        vim_free(p);
+       if (do_shorten)
+       {
+           shorten_fnames(TRUE);
+           last_chdir_reason = "drop";
+       }
      }
  
      // Update the screen display
***************
*** 5635,5641 ****
        }
        else
            handle_drop(count, fnames, (modifiers & MOUSE_CTRL) != 0,
!                   drop_callback, (void *)p);
      }
  
      entered = FALSE;
--- 5641,5647 ----
        }
        else
            handle_drop(count, fnames, (modifiers & MOUSE_CTRL) != 0,
!                                                    drop_callback, (void *)p);
      }
  
      entered = FALSE;
*** ../vim-8.2.3647/src/version.c       2021-11-22 17:18:41.198383480 +0000
--- src/version.c       2021-11-22 17:21:35.509790664 +0000
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     3648,
  /**/

-- 
ROBIN:  (warily) And if you get a question wrong?
ARTHUR: You are cast into the Gorge of Eternal Peril.
ROBIN:  Oh ... wacho!
                 "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/ ///
 \\\            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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211122172212.618E61C3DD8%40moolenaar.net.

Raspunde prin e-mail lui