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

Re: Error while processing function SpellPopup

Expand Messages
  • Bram Moolenaar
    Stefan Karlsson - ... This patch will fix it: Index: runtime/menu.vim =================================================================== RCS file:
    Message 1 of 2 , Oct 1, 2005
    • 0 Attachment
      Stefan Karlsson -

      > When I do ":set spell" and then right clicks on a word I get the message
      > "Error while processing function <SNR>7_SpellPopup". Does anyone else
      > experience the same behavior?
      >
      > I run Vim 7 dated 29 september 2005.

      This patch will fix it:

      Index: runtime/menu.vim
      ===================================================================
      RCS file: /cvsroot/vim/vim7/runtime/menu.vim,v
      retrieving revision 1.19
      diff -u -r1.19 menu.vim
      --- runtime/menu.vim 16 Aug 2005 22:54:47 -0000 1.19
      +++ runtime/menu.vim 1 Oct 2005 16:52:06 -0000
      @@ -902,7 +902,7 @@
      endif

      let curcol = col('.')
      - let w = spellbadword()
      + let [w, a] = spellbadword()
      if col('.') > curcol " don't use word after the cursor
      let w = ''
      call cursor(0, curcol) " put the cursor back where it was

      --
      Beer & pretzels can't be served at the same time in any bar or restaurant.
      [real standing law in North Dakota, United States of America]

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.