mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-10 09:00:20 +09:00
Add suspend for linux only
This commit is contained in:
@@ -837,8 +837,6 @@ func (v *View) Find(usePlugin bool) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (v *View) Suspend(usePlugin bool) bool { return false }
|
||||
|
||||
// FindNext searches forwards for the last used search term
|
||||
func (v *View) FindNext(usePlugin bool) bool {
|
||||
if usePlugin && !PreActionCall("FindNext", v) {
|
||||
|
||||
9
cmd/micro/actions_other.go
Normal file
9
cmd/micro/actions_other.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// +build !linux
|
||||
|
||||
package main
|
||||
|
||||
func (v *View) Suspend(usePlugin bool) bool {
|
||||
TermError("Suspend is only supported on Linux")
|
||||
|
||||
return false
|
||||
}
|
||||
@@ -90,6 +90,7 @@ var bindingActions = map[string]func(*View, bool) bool{
|
||||
"HSplit": (*View).HSplitBinding,
|
||||
"ToggleMacro": (*View).ToggleMacro,
|
||||
"PlayMacro": (*View).PlayMacro,
|
||||
"Suspend": (*View).Suspend,
|
||||
|
||||
// This was changed to InsertNewline but I don't want to break backwards compatibility
|
||||
"InsertEnter": (*View).InsertNewline,
|
||||
|
||||
Reference in New Issue
Block a user