lewis6991 / gitsigns.nvim

Git integration for buffers
MIT License
5.12k stars 192 forks source link

fix: diffthis vertical option #1120

Closed petersohn closed 1 month ago

petersohn commented 1 month ago

Error description

My default for opening splits is vertical. I try to open diffthis in vertical:

require('gitsigns').diffthis { '', vertical = false }

It still opens the diff vertically.

Fix description

The error is that the value is replaced by the default because it compares the argument as a bool instead of comparing with nil.