Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestrew committed Dec 2, 2023
1 parent e490761 commit e483662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/telescope/actions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,8 @@ actions.delete_mark = function(prompt_bufnr)
local bufnr = vim.fn.bufnr(bufname)
local mark = selection.ordinal:sub(1, 1)

local success = false
if mark:match("%u") then
local success
if mark:match "%u" then
success = pcall(vim.api.nvim_del_mark, mark)
else
success = pcall(vim.api.nvim_buf_del_mark, bufnr, mark)
Expand Down

0 comments on commit e483662

Please sign in to comment.