File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package controllers
22
33import (
44 "fmt"
5- "strings"
65
76 "github.com/jesseduffield/lazygit/pkg/gui/modes/diffing"
87 "github.com/jesseduffield/lazygit/pkg/gui/types"
@@ -38,7 +37,7 @@ func (self *DiffingMenuAction) Call() error {
3837 Title : self .c .Tr .EnterRefName ,
3938 FindSuggestionsFunc : self .c .Helpers ().Suggestions .GetRefsSuggestionsFunc (),
4039 HandleConfirm : func (response string ) error {
41- self .c .Modes ().Diffing .Ref = strings . TrimSpace ( response )
40+ self .c .Modes ().Diffing .Ref = response
4241 self .c .Refresh (types.RefreshOptions {Mode : types .ASYNC })
4342 return nil
4443 },
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package controllers
22
33import (
44 "fmt"
5- "strings"
65
76 "github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers"
87 "github.com/jesseduffield/lazygit/pkg/gui/types"
@@ -66,7 +65,7 @@ func (self *FilteringMenuAction) Call() error {
6665 FindSuggestionsFunc : self .c .Helpers ().Suggestions .GetFilePathSuggestionsFunc (),
6766 Title : self .c .Tr .EnterFileName ,
6867 HandleConfirm : func (response string ) error {
69- return self .setFilteringPath (strings . TrimSpace ( response ) )
68+ return self .setFilteringPath (response )
7069 },
7170 })
7271
@@ -82,7 +81,7 @@ func (self *FilteringMenuAction) Call() error {
8281 FindSuggestionsFunc : self .c .Helpers ().Suggestions .GetAuthorsSuggestionsFunc (),
8382 Title : self .c .Tr .EnterAuthor ,
8483 HandleConfirm : func (response string ) error {
85- return self .setFilteringAuthor (strings . TrimSpace ( response ) )
84+ return self .setFilteringAuthor (response )
8685 },
8786 })
8887
You can’t perform that action at this time.
0 commit comments