Skip to content
Myr

Do not disable mouse on SIGCONT before SIGSTOP

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #2161

authored by Junegunn Choi · committed by Junegunn Choi · parent d779ff7 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/terminal.go+4 added-1 removed
149 unmodified lines
150 mutex sync.Mutex151 initFunc func()152 prevLines []itemLine153 suppress bool154 sigstop bool155 startChan chan bool156 killChan chan int157 slab *util.Slab158 theme *tui.ColorTheme
356 unmodified lines
515 previewBox: previewBox,516 eventBox: eventBox,517 mutex: sync.Mutex{},518 suppress: true,519 sigstop: false,520 slab: util.MakeSlab(slab16Size, slab32Size),521 theme: opts.Theme,522 startChan: make(chan bool, 1),523 killChan: make(chan int),
1550 unmodified lines
2074 t.printHeader()2075 case reqRefresh:2076 t.suppress = false2077 case reqReinit:2076 t.tui.Resume(t.fullscreen, true)2078 t.tui.Resume(t.fullscreen, t.sigstop)2079 t.redraw()2080 case reqRedraw:2081 t.redraw()2082 case reqClose:
407 unmodified lines
2490 req(reqPrompt)2491 case actSigStop:2492 p, err := os.FindProcess(os.Getpid())2493 if err == nil {2494 t.sigstop = true2495 t.tui.Clear()2496 t.tui.Pause(t.fullscreen)2497 notifyStop(p)2498 t.mutex.Unlock()
182 unmodified lines