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

33594Re: Enhancements to the winnr() function

Expand Messages
  • Bram Moolenaar
    Sep 1, 2003
    • 0 Attachment
      Yegappan Lakshmanan wrote:

      > The winnr() function currently returns only the current window
      > number. It is cumbersome to determine the last window number or
      > the previously accessed window number. The attached patch
      > enhances the winnr() function to return these values.
      >
      > winnr() (to be backward compatible)
      > winnr("")
      > winnr("%") - Return the current window number.
      > winnr("$") - Return the last window number.
      > winnr("#") - Return the previously accessed window number.

      Looks OK to me. Nikolai Weibull made a similar patch a while ago, but I
      still didn't include it. This one goes in the todo list, bug fixing has
      priority.

      --
      Linux is just like a wigwam: no Windows, no Gates and an Apache inside.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
    • Show all 3 messages in this topic