Fixes
This commit is contained in:
parent
40c833a957
commit
b9d337598e
@ -30,8 +30,6 @@ local function setup(opt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function query(param_name, pairing)
|
local function query(param_name, pairing)
|
||||||
assert(pairing)
|
|
||||||
|
|
||||||
local default_param_value = options_current.default[param_name]
|
local default_param_value = options_current.default[param_name]
|
||||||
local param_value = default_param_value
|
local param_value = default_param_value
|
||||||
|
|
||||||
|
@ -41,23 +41,23 @@ function ParamRangeCell.new(range)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:write(builder, wrapped)
|
function ParamRangeCell:write(builder, wrapped)
|
||||||
self.value:write(builder, wrapped)
|
self.range:write(builder, wrapped)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:hit_test(cursor)
|
function ParamRangeCell:hit_test(cursor)
|
||||||
return self.value:hit_test(cursor)
|
return self.range:hit_test(cursor)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:hit_search(trace, depth)
|
function ParamRangeCell:hit_search(trace, depth)
|
||||||
return self.value:hit_search(trace, depth + 1)
|
return self.range:hit_search(trace, depth + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:get_start_row()
|
function ParamRangeCell:get_start_row()
|
||||||
return self.value.start_cursor.row
|
return self.range.start_cursor.row
|
||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:get_stop_row()
|
function ParamRangeCell:get_stop_row()
|
||||||
return self.value.stop_cursor.row
|
return self.range.stop_cursor.row
|
||||||
end
|
end
|
||||||
|
|
||||||
function ParamRangeCell:is_empty()
|
function ParamRangeCell:is_empty()
|
||||||
@ -77,7 +77,7 @@ function Param.new_cursor_cell(cursor)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Param.new_range_cell(range)
|
function Param.new_range_cell(range)
|
||||||
return ParamRangeCell(range)
|
return ParamRangeCell.new(range)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Param:append(cell)
|
function Param:append(cell)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user