Fix T53476: File Browser: Selection Issue with 'fill' option.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 5 Dec 2017 21:34:49 +0000 (22:34 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 5 Dec 2017 21:34:49 +0000 (22:34 +0100)
commitee120d6293fefec25d762b069d813440f3e54ee5
treef6c6728059caf706ca49de1e6341f94cfb61b89f
parent855799ecc1c5e53d9fbfe520fd5402bc0138f674
Fix T53476: File Browser: Selection Issue with 'fill' option.

Fill-selection would only go upward in list of items to find an already
selected one and fill-select all items in-between. Now, in case upward
search fails, it will also intent to go downward, effectiviely allowing
to 'fill-select' from bottom to top.

Note that top-to-bottom keeps priority (i.e. if a top-to-bottom
fill-selection is possible, it will always happen, even if a
bottom-to-top one is also possible).
source/blender/editors/space_file/file_ops.c