mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Replace CurrentContext() with Context().Current()
This commit is contained in:
parent
8e15451117
commit
7ed94c0410
23 changed files with 24 additions and 29 deletions
|
@ -19,7 +19,7 @@ func (self *ToggleWhitespaceAction) Call() error {
|
|||
context.PATCH_BUILDING_MAIN_CONTEXT_KEY,
|
||||
}
|
||||
|
||||
if lo.Contains(contextsThatDontSupportIgnoringWhitespace, self.c.CurrentContext().GetKey()) {
|
||||
if lo.Contains(contextsThatDontSupportIgnoringWhitespace, self.c.Context().Current().GetKey()) {
|
||||
// Ignoring whitespace is not supported in these views. Let the user
|
||||
// know that it's not going to work in case they try to turn it on.
|
||||
return errors.New(self.c.Tr.IgnoreWhitespaceNotSupportedHere)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue