Simpler implementation of dirpreviews (#1958)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-04-10 15:34:13 +10:00
1 parent 3d5a418c6c
commit 0df0c0f5ff
3 files changed
+14 -118

No files matched your search

-3
View File
@@ -258,7 +258,6 @@ func (app *app) writeHistory() error {
// separate goroutines and sent here for update.
func (app *app) loop() {
go app.nav.previewLoop(app.ui)
go app.nav.dirPreviewLoop(app.ui)
var serverChan <-chan expr
if !gSingleMode {
@@ -336,7 +335,6 @@ func (app *app) loop() {
app.quit()
app.nav.previewChan <- ""
app.nav.dirPreviewChan <- nil
log.Print("bye!")
@@ -510,7 +508,6 @@ func (app *app) loop() {
func (app *app) runCmdSync(cmd *exec.Cmd, pause_after bool) {
app.nav.previewChan <- ""
app.nav.dirPreviewChan <- nil
if err := app.ui.suspend(); err != nil {
log.Printf("suspend: %s", err)