Directories added to dirChan no longer trigger checkDir (#1607)

* Directories added to dirChan no longer trigger checkDir

removed unneeded blank line

* removed possibly looping checkReg call
This commit is contained in:
Michael Gallo authored and GitHub committed 2024-03-24 20:12:35 +01:00
1 parent c19cc15079
commit 951795c789
1 file changed
-5
-5
View File
@@ -379,9 +379,6 @@ func (app *app) loop() {
}
app.ui.draw(app.nav)
case d := <-app.nav.dirChan:
app.nav.checkDir(d)
if gOpts.dircache {
prev, ok := app.nav.dirCache[d.path]
if ok {
@@ -416,8 +413,6 @@ func (app *app) loop() {
app.ui.draw(app.nav)
case r := <-app.nav.regChan:
app.nav.checkReg(r)
app.nav.regCache[r.path] = r
curr, err := app.nav.currFile()