Skip to content

Commit 0fcbd7f

Browse files
committed
fix: rename prompt length access
1 parent 2df3528 commit 0fcbd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/cosmic-ui/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local map = function(input, lhs, rhs)
3939
end
4040

4141
M.default_mappings = function(input)
42-
local prompt = input.input_props.prompt:len()
42+
local prompt = input.input_props.prompt._length
4343

4444
map(input, '<ESC>', function()
4545
input.input_props.on_close()

0 commit comments

Comments
 (0)