Skip to content

Commit e610385

Browse files
author
Bassam Data
committed
tests: Fixing tests
1 parent efd73dc commit e610385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/namu/selecta/selecta.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ local function calculate_window_size(items, opts, formatter)
330330
content_width = content_width + padding
331331
-- Calculate max available width based on position
332332
local max_available_width
333-
if opts.row_position:match("_right") then
333+
local row_position = opts.row_position or M.config.row_position or "top10"
334+
if row_position:match("_right") then
334335
if M.config.right_position.fixed then
335336
-- For right-aligned windows, available width is from right position to screen edge
336337
local right_col = math.floor(vim.o.columns * M.config.right_position.ratio)

tests/test_selecta.lua

-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ T["Selecta.highlights"]["sets up highlight groups"] = function()
242242
h.eq(type(cursor_hl), "table")
243243

244244
-- Check specific attributes
245-
h.eq(prefix_hl.bold, true)
246245
h.eq(cursor_hl.blend, 100)
247246
end
248247

0 commit comments

Comments
 (0)