1
This commit is contained in:
Alex Yatskov 2024-12-31 20:39:48 -08:00
parent 40c833a957
commit b9d337598e
2 changed files with 6 additions and 8 deletions

View File

@ -30,8 +30,6 @@ local function setup(opt)
end
local function query(param_name, pairing)
assert(pairing)
local default_param_value = options_current.default[param_name]
local param_value = default_param_value

View File

@ -41,23 +41,23 @@ function ParamRangeCell.new(range)
end
function ParamRangeCell:write(builder, wrapped)
self.value:write(builder, wrapped)
self.range:write(builder, wrapped)
end
function ParamRangeCell:hit_test(cursor)
return self.value:hit_test(cursor)
return self.range:hit_test(cursor)
end
function ParamRangeCell:hit_search(trace, depth)
return self.value:hit_search(trace, depth + 1)
return self.range:hit_search(trace, depth + 1)
end
function ParamRangeCell:get_start_row()
return self.value.start_cursor.row
return self.range.start_cursor.row
end
function ParamRangeCell:get_stop_row()
return self.value.stop_cursor.row
return self.range.stop_cursor.row
end
function ParamRangeCell:is_empty()
@ -77,7 +77,7 @@ function Param.new_cursor_cell(cursor)
end
function Param.new_range_cell(range)
return ParamRangeCell(range)
return ParamRangeCell.new(range)
end
function Param:append(cell)