mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-10-23 17:48:30 +03:00
better handling of our different modes and also cherry picking
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
package gui
|
||||
|
||||
func (gui *Gui) inFilterMode() bool {
|
||||
return gui.State.Modes.Filtering.Path != ""
|
||||
}
|
||||
|
||||
func (gui *Gui) validateNotInFilterMode() (bool, error) {
|
||||
if gui.inFilterMode() {
|
||||
if gui.State.Modes.Filtering.Active() {
|
||||
err := gui.ask(askOpts{
|
||||
returnToView: gui.g.CurrentView(),
|
||||
returnFocusOnClose: true,
|
||||
|
||||
Reference in New Issue
Block a user