'octo/writers.lua' uses the global 'octo_buffers', which 'octo.lua'
initializes. However, if a user calls a function that uses the telescope
previewer (e.g. 'Octo pr list') then there's a chance that
'octo/writers.lua' executes before the initialization of 'octo_buffers'.
This results in an attempt to index a nil global.
Does this pull request fix one issue?
Fixes #207
Describe how you did it
To fix this, import the 'octo' module so 'octo_buffers' has guaranteed
initialization.
Describe what this PR does / why we need it
'octo/writers.lua' uses the global 'octo_buffers', which 'octo.lua' initializes. However, if a user calls a function that uses the telescope previewer (e.g. 'Octo pr list') then there's a chance that 'octo/writers.lua' executes before the initialization of 'octo_buffers'. This results in an attempt to index a nil global.
Does this pull request fix one issue?
Fixes #207
Describe how you did it
To fix this, import the 'octo' module so 'octo_buffers' has guaranteed initialization.
Describe how to verify it
Octo pr list
Special notes for reviews