mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *View) Suspend(usePlugin bool) bool { return false }
|
|
||||||
|
|
||||||
// FindNext searches forwards for the last used search term
|
// FindNext searches forwards for the last used search term
|
||||||
func (v *View) FindNext(usePlugin bool) bool {
|
func (v *View) FindNext(usePlugin bool) bool {
|
||||||
if usePlugin && !PreActionCall("FindNext", v) {
|
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,
|
"HSplit": (*View).HSplitBinding,
|
||||||
"ToggleMacro": (*View).ToggleMacro,
|
"ToggleMacro": (*View).ToggleMacro,
|
||||||
"PlayMacro": (*View).PlayMacro,
|
"PlayMacro": (*View).PlayMacro,
|
||||||
|
"Suspend": (*View).Suspend,
|
||||||
|
|
||||||
// This was changed to InsertNewline but I don't want to break backwards compatibility
|
// This was changed to InsertNewline but I don't want to break backwards compatibility
|
||||||
"InsertEnter": (*View).InsertNewline,
|
"InsertEnter": (*View).InsertNewline,
|
||||||
|
|||||||
Reference in New Issue
Block a user