Skip to content

Commit de19802

Browse files
committed
Fix wrong text being used in error message
The code was copied from StagingController in 0496e3a, and I did add the new text in that commit, I just forgot to adapt the code to actually use it.
1 parent 28bb6a0 commit de19802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gui/controllers/commits_files_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func (self *CommitFilesController) openDiffTool(node *filetree.CommitFileNode) e
379379

380380
func (self *CommitFilesController) toggleForPatch(selectedNodes []*filetree.CommitFileNode) error {
381381
if self.c.AppState.DiffContextSize == 0 {
382-
return fmt.Errorf(self.c.Tr.Actions.NotEnoughContextToStage,
382+
return fmt.Errorf(self.c.Tr.Actions.NotEnoughContextForCustomPatch,
383383
keybindings.Label(self.c.UserConfig().Keybinding.Universal.IncreaseContextInDiffView))
384384
}
385385

@@ -475,7 +475,7 @@ func (self *CommitFilesController) enterCommitFile(node *filetree.CommitFileNode
475475
}
476476

477477
if self.c.AppState.DiffContextSize == 0 {
478-
return fmt.Errorf(self.c.Tr.Actions.NotEnoughContextToStage,
478+
return fmt.Errorf(self.c.Tr.Actions.NotEnoughContextForCustomPatch,
479479
keybindings.Label(self.c.UserConfig().Keybinding.Universal.IncreaseContextInDiffView))
480480
}
481481

0 commit comments

Comments
 (0)