[fix] resize empty dir status and highlight
commit26e53f038047df7ed3a420b7783d75757d55a3ac
authorafify <hassan@afify.dev>
Tue, 13 Oct 2020 04:08:35 +0000 (13 07:08 +0300)
committerafify <hassan@afify.dev>
Tue, 13 Oct 2020 04:08:35 +0000 (13 07:08 +0300)
treea16e1387f98d1f1901aa3f3a67715245708a3e46
parentde7271a3c6f5bd7ed5ccd7abe6100ef8499cd887
[fix] resize empty dir status and highlight

- problem 1: resize() with empty directory, add highlight to unexisted
  row (row 1).
- problem 2: resize() call refresh_pane() twice, status for empty dir
  exists.
- solution: if dirc > 0 add highlight, if dirc not > 0 clear_status()
sfm.c