Loading ...
Sorry, an error occurred while loading the content.

Re: Bug? Switching to gui within netrw

Expand Messages
  • Bram Moolenaar
    Dominique - ... Please send your findings to Charles Campbell. I think he is still away though. -- DENNIS: Listen -- strange women lying in ponds
    Message 1 of 16 , Jul 29 7:42 AM
    • 0 Attachment
      Dominique -

      > On Sun, Jul 27, 2008 at 7:49 PM, Dominique Pelle
      > <dominique.pelle@...> wrote:
      >
      > ...snip...
      >
      > > - When I press an arrow key (<right> for example), the tittle of the
      > > GUI window changes!? It changes from...
      > >
      > > "src - (~/sb/vim7) - VIM"
      > > ... to...
      > > "src - (~sb/vim7/src) - VIM"
      > >
      > > My current directory is ~/sb/vim7/src.
      > >
      > > I see that when doing ":Explore" in the terminal, the title of
      > > my terminal window is "src - (~/sb/vim7) - VIM"
      > > and remains unchanged as I move cursor with arrow keys.
      > > Similarly, if I start "gvim", then ":Explore", title of window
      > > is ""src - (~/sb/vim7) - VIM" and does not change when moving
      > > cursor.
      >
      >
      > I found that ":set autochdir" is triggering this incorrect window name.
      > I can reproduce it this way:
      >
      > 1/ create a simple ~/.vimrc containing:
      >
      > set nocompatible
      > set autochdir
      >
      > 2/ start vim from a directory somewhere under your $HOME dir
      >
      > $ pwd
      > /home/pel/sb/vim7/src
      >
      > $ vim
      >
      > 3/ enter the commands (in that order!)
      >
      > :Explore
      > :gui -f
      >
      > Notice the the window title contains "src - (~/sb/vim7) VIM" (which is good)
      >
      > 4/ then move the cursor, pressing <right> for example.
      >
      > Notice then that the window title changes and now
      > contains "src - (~/sb/vim7/src) VIM" (which is incorrect)
      >
      > I can see that curbuf->b_ffname becomes "/home/pel/sb/vim7/src/src"
      > in setfname() which is incorrect (notice the src directory repeated twice)
      >
      > I will try to debug it further when I have time later this week.

      Please send your findings to Charles Campbell. I think he is still away
      though.

      --
      DENNIS: Listen -- strange women lying in ponds distributing swords is no
      basis for a system of government. Supreme executive power derives
      from a mandate from the masses, not from some farcical aquatic
      ceremony.
      The Quest for the Holy Grail (Monty Python)

      /// Bram Moolenaar -- Bram@... -- 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
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.