Skip to content

Commit 684e7e6

Browse files
committed
feat: default to order = 'reverse' when position = 'bottom'
1 parent e5b8d8b commit 684e7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/wincent/commandt/private/options/defaults.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ function Defaults:clone(options)
140140
local copy = require('wincent.commandt.private.copy')
141141
local result = copy(self._options)
142142

143-
-- Claims we are passed nil
144-
-- Swap border definitions if `position = 'bottom'` is set.
143+
-- Swap border definitions if `position = 'bottom'` is set, and reverse order.
145144
if type(options) == 'table' and options.position == 'bottom' then
146145
result.match_listing.border = self._options.prompt.border
147146
result.prompt.border = self._options.match_listing.border
147+
result.order = 'reverse'
148148
end
149149

150150
return result

0 commit comments

Comments
 (0)