8c6fca48ea
subrepo: subdir: "dotfiles/.vim/plugged/fzf" merged: "dad26d81d" upstream: origin: "https://github.com/junegunn/fzf.git" branch: "master" commit: "dad26d81d" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
26 lines
447 B
Go
26 lines
447 B
Go
//go:build !windows
|
|
|
|
package fzf
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"strings"
|
|
"syscall"
|
|
)
|
|
|
|
func notifyOnResize(resizeChan chan<- os.Signal) {
|
|
signal.Notify(resizeChan, syscall.SIGWINCH)
|
|
}
|
|
|
|
func notifyStop(p *os.Process) {
|
|
p.Signal(syscall.SIGSTOP)
|
|
}
|
|
|
|
func notifyOnCont(resizeChan chan<- os.Signal) {
|
|
signal.Notify(resizeChan, syscall.SIGCONT)
|
|
}
|
|
|
|
func quoteEntry(entry string) string {
|
|
return "'" + strings.Replace(entry, "'", "'\\''", -1) + "'"
|
|
}
|