simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

initialize the variable #61

Closed gumuncle closed 9 years ago

gumuncle commented 9 years ago

I get an error

:Simplenote -l

Traceback (most recent call last): File "", line 12, in File "", line 440, in list_note_index_in_scratch_buffer File "", line 212, in format_title File "", line 96, in format_title_len_no_conceal UnboundLocalError: local variable 'length' referenced before assignment

Probably it is an error to happen because length of simplenote.vim #242 is not initialized. It was recovered when I initialized a variable with 0.

I beg your kindness.

atomicules commented 9 years ago

Hi. I will take a look.

atomicules commented 9 years ago

Thank you very much for reporting this. It was my fault, apologies for the inconvenience.