replaced wrong variable operation
This commit is contained in:
parent
00ebaafc26
commit
26622ecefc
|
@ -2,8 +2,8 @@ local M = {}
|
||||||
|
|
||||||
function M.lookup()
|
function M.lookup()
|
||||||
local keywords = vim.fn.getreg("*") -- receive yanked text
|
local keywords = vim.fn.getreg("*") -- receive yanked text
|
||||||
|
keywords = keywords:sub(2, #keywords)
|
||||||
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
||||||
url = url:sub(2, #url)
|
|
||||||
url, empty = url:gsub(" ", "+")
|
url, empty = url:gsub(" ", "+")
|
||||||
|
|
||||||
-- Setup a http socket and request
|
-- Setup a http socket and request
|
||||||
|
|
Loading…
Reference in New Issue