I sometimes click on “Discard Hunk” or “Discard” on another file when I mean to discard the selected lines on the file below it. Normally I only ever discard selected lines because I too often made mistakes when using these other Discard buttons (I hate that they are fixed so their target file changes as you scroll even though they don’t move). Worst of all, these destructive actions can’t be undone.
So my question is, is there any way to disable or hide these buttons? Maybe some config hack that I can use for this?