diff --git a/pkg/gui/controllers/context_lines_controller.go b/pkg/gui/controllers/context_lines_controller.go index 4c8a14881..f63d90ed4 100644 --- a/pkg/gui/controllers/context_lines_controller.go +++ b/pkg/gui/controllers/context_lines_controller.go @@ -1,7 +1,6 @@ package controllers import ( - "errors" "fmt" "math" @@ -51,10 +50,6 @@ func (self *ContextLinesController) Context() types.Context { } func (self *ContextLinesController) Increase() error { - if err := self.checkCanChangeContext(); err != nil { - return err - } - if self.c.UserConfig().Git.DiffContextSize < math.MaxUint64 { self.c.UserConfig().Git.DiffContextSize++ } @@ -62,10 +57,6 @@ func (self *ContextLinesController) Increase() error { } func (self *ContextLinesController) Decrease() error { - if err := self.checkCanChangeContext(); err != nil { - return err - } - if self.c.UserConfig().Git.DiffContextSize > 0 { self.c.UserConfig().Git.DiffContextSize-- } @@ -93,11 +84,3 @@ func (self *ContextLinesController) applyChange() error { } return nil } - -func (self *ContextLinesController) checkCanChangeContext() error { - if self.c.Git().Patch.PatchBuilder.Active() { - return errors.New(self.c.Tr.CantChangeContextSizeError) - } - - return nil -} diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 15df07786..0d653bfab 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -839,7 +839,6 @@ type TranslationSet struct { SortOrderPrompt string SortCommits string SortCommitsTooltip string - CantChangeContextSizeError string CantChangeRenameThresholdError string OpenCommitInBrowser string ViewBisectOptions string @@ -2003,7 +2002,6 @@ func EnglishTranslationSet() *TranslationSet { SortBasedOnReflog: "(based on reflog)", SortCommits: "Commit sort order", SortCommitsTooltip: "Change the sort order of the commits in the commit log.\n\nThe default can be changed in the config file with the key 'git.log.sortOrder'.", - CantChangeContextSizeError: "Cannot change context while in patch building mode because we were too lazy to support it when releasing the feature. If you really want it, please let us know!", CantChangeRenameThresholdError: "Cannot change the rename similarity threshold while in patch building mode, because the custom patch can't cope with a rename turning into a delete and add underneath it.", OpenCommitInBrowser: "Open commit in browser", ViewBisectOptions: "View bisect options",