Removed unused variables
This commit is contained in:
parent
de94c8a13c
commit
95bdb07d49
|
@ -216,7 +216,6 @@ end
|
||||||
local function draw_suggestions_box(self)
|
local function draw_suggestions_box(self)
|
||||||
local lh = self:get_suggestion_line_height()
|
local lh = self:get_suggestion_line_height()
|
||||||
local dh = style.divider_size
|
local dh = style.divider_size
|
||||||
local offsety = self:get_line_text_y_offset()
|
|
||||||
local x, _ = self:get_line_screen_position()
|
local x, _ = self:get_line_screen_position()
|
||||||
local h = math.ceil(self.suggestions_height)
|
local h = math.ceil(self.suggestions_height)
|
||||||
local rx, ry, rw, rh = self.position.x, self.position.y - h - dh, self.size.x, h
|
local rx, ry, rw, rh = self.position.x, self.position.y - h - dh, self.size.x, h
|
||||||
|
|
|
@ -60,7 +60,7 @@ end
|
||||||
|
|
||||||
local function fuzzy_match_items(items, needle)
|
local function fuzzy_match_items(items, needle)
|
||||||
local res = {}
|
local res = {}
|
||||||
for i, item in ipairs(items) do
|
for _, item in ipairs(items) do
|
||||||
local score = system.fuzzy_match(tostring(item), needle)
|
local score = system.fuzzy_match(tostring(item), needle)
|
||||||
if score then
|
if score then
|
||||||
table.insert(res, { text = item, score = score })
|
table.insert(res, { text = item, score = score })
|
||||||
|
|
|
@ -2,7 +2,6 @@ local core = require "core"
|
||||||
local common = require "core.common"
|
local common = require "core.common"
|
||||||
local config = require "core.config"
|
local config = require "core.config"
|
||||||
local style = require "core.style"
|
local style = require "core.style"
|
||||||
local syntax = require "core.syntax"
|
|
||||||
local translate = require "core.doc.translate"
|
local translate = require "core.doc.translate"
|
||||||
local View = require "core.view"
|
local View = require "core.view"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue