diff options
author | kobutomo <n.tomoro13@gmail.com> | 2020-10-05 23:59:35 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-06 21:55:01 +1100 |
commit | 26cb209af24de5f0fae3ba30a0905400fe2f55a8 (patch) | |
tree | 22bdd05f6517585dfe4da27036d7a456833d0a4e /pkg | |
parent | 76f7726c470e71d329dd5a0ee87f888efa502b71 (diff) |
Ignore "i" command if the filename is .gitignore
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/files_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 9877d1602..a689de6c9 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -247,7 +247,7 @@ func (gui *Gui) handleStageAll(g *gocui.Gui, v *gocui.View) error { func (gui *Gui) handleIgnoreFile(g *gocui.Gui, v *gocui.View) error { file := gui.getSelectedFile() - if file == nil { + if file == nil || file.Name == ".gitignore" { return nil } |