Skip to content

Commit

Permalink
Directories added to dirChan no longer trigger checkDir (#1607)
Browse files Browse the repository at this point in the history
* Directories added to dirChan no longer trigger checkDir

removed unneeded blank line

* removed possibly looping checkReg call
  • Loading branch information
Michael-Gallo authored Mar 24, 2024
1 parent c19cc15 commit 951795c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 951795c

Please sign in to comment.