replaced wrong variable operation

This commit is contained in:
Yannick Reiß 2024-02-18 14:00:18 +01:00
parent 00ebaafc26
commit 26622ecefc
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 1 additions and 1 deletions

View File

@ -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