Skip to content

Commit

Permalink
doc: fix awkward wording in the toggle_trash action
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 3, 2023
1 parent b652b3a commit 9a8cd48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/oil/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ M.change_sort = {
}

M.toggle_trash = {
desc = "Jump back and forth the trash for the current directory",
desc = "Jump to and from the trash for the current directory",
callback = function()
local fs = require("oil.fs")
local bufname = vim.api.nvim_buf_get_name(0)
Expand All @@ -321,8 +321,8 @@ M.toggle_trash = {
url = "oil-trash://" .. path
elseif scheme == "oil-trash://" then
url = "oil://" .. path
-- The non-linux trash implementations don't support per-directory trash, so try to jump back
-- to the original buffer by looking at the alternat buffer
-- The non-linux trash implementations don't support per-directory trash,
-- so jump back to the stored source buffer.
if not fs.is_linux then
local src_bufnr = vim.b.oil_trash_toggle_src
if src_bufnr and vim.api.nvim_buf_is_valid(src_bufnr) then
Expand Down

0 comments on commit 9a8cd48

Please sign in to comment.