krischik / vim-scripts

Automatically exported from code.google.com/p/vim-scripts
GNU General Public License v3.0
1 stars 0 forks source link

activate fails without toggle #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to control on/off with two shortcut keys instead of having one toggle 
key pointing to toggle.

What steps will reproduce the problem?
1. call #Activate without calling #Toggle first

What is the expected output? What do you see instead?
I expect it activates. it does not.

What version of the product are you using? On what operating system?
vim 7.2, linux
1561 Rainbow Parenthsis Bundle/ autoload/ rainbow_parenthsis.vim rev51

Please provide any additional information below.
i worked around it by moving the check for Load into the Activate method

function rainbow_parenthsis#Activate()
+    if ! exists('rainbow_parenthsis#active')
+        call rainbow_parenthsis#LoadRound ()
+    endif
...

Original issue reported on code.google.com by gbar...@yahoo-inc.com on 14 Feb 2014 at 11:24