kept the rightmost column of the screen from being used
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3717
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- After entering "..", select the directory we were in before
instead of the first filename in the list, as Pico does. (DLR)
- Simplify screen update handling and exiting. (DLR)
+ browser_init()
+ - Fix off-by-one error when calculating longest that kept the
+ rightmost column of the screen from being used. (DLR)
browser_refresh()
- Simplify. (DLR)
- Fix problems where translated versions of "(dir)" could be
i++;
- d_len = strlenpt(nextdir->d_name);
+ d_len = strlenpt(nextdir->d_name) + 1;
if (d_len > longest)
longest = (d_len > COLS - 1) ? COLS - 1 : d_len;
}