pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.28k stars 125 forks source link

Fix display offset values for empty diff directives #384

Closed wgkassem closed 1 year ago

wgkassem commented 1 year ago

Describe what this PR does / why we need it

Assigns 0 to offset values that were returned as nil from string.match() i.e. no diff_directive was found or was empty string.

Does this pull request fix one issue?

Fixes #382

Describe how you did it

Set right_offset and left_offset to 0 if values are equal to nil

Describe how to verify it

Tested on a personal repo

Special notes for reviews

pwntester commented 1 year ago

Thank you!