pseewald / vim-anyfold

Language agnostic vim plugin for folding and motion based on indentation.
MIT License
268 stars 11 forks source link

error when reloading .git/index file #13

Closed huangyingw closed 6 years ago

huangyingw commented 6 years ago

Hi, When I reload a .git/index file in vim, I got following errors:

E121: Undefined variable: b:anyfold_ind_actual Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E116: Invalid arguments for function len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E15: Invalid expression: line('$') - len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E121: Undefined variable: b:anyfold_ind_actual Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E116: Invalid arguments for function len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E15: Invalid expression: line('$') - len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E121: Undefined variable: b:anyfold_ind_actual Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E116: Invalid arguments for function len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E15: Invalid expression: line('$') - len(b:anyfold_ind_actual) Press ENTER or type command to continue Error detected while processing function 112_ReloadFolds: line 14: E121: Undefined variable: b:anyfold_ind_actual

pseewald commented 6 years ago

I can not reproduce this issue. Could you give a minimal example?

huangyingw commented 6 years ago

Sorry, I could not reproduce this now.