Ticket #3757: cannot show more than one column in user defined listing mode.
commit05661eda1df0b7aaa258e386ce813f92d6d48188
authorMooffie <mooffie@gmail.com>
Sun, 15 Jan 2017 21:51:45 +0000 (15 23:51 +0200)
committerMooffie <mooffie@gmail.com>
Sun, 15 Jan 2017 22:23:03 +0000 (16 00:23 +0200)
tree7ea502c1cc813db40f6a342ba0d82ac9812c2714
parentb229abc1eb4f6bb204cf783f72a8d05bbbc0d367
Ticket #3757: cannot show more than one column in user defined listing mode.

In user-defined listing mode, the format string lets us specify how many
columns to display. E.g., for 3 columns:

    "half 3 type name | size | perm"

However, parse_panel_size() reads this digit only when `panel->list_type ==
list_brief`. We remove this check.

Incidentally, the assignment there to `panel->brief_cols` isn't needed. In
list_brief mode, `panel->brief_cols` is already set.

We also fix a related problem in the mouse handler: it erroneously assumes
`panel->list_cols > 1` happens only in list_brief mode.

(These bugs were introduced in commit fb474bc1c157.)

Signed-off-by: Mooffie <mooffie@gmail.com>
src/filemanager/panel.c