aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@baemingo.com>2023-05-19 14:32:33 -0500
committerMarc Coquand <marc@baemingo.com>2023-05-19 14:32:33 -0500
commit0992eebd80dbc7a1969c8868df9b0ca5e6b82aac (patch)
treea225585bb06bd9c22a8cc726e9308d642f65d3c8
parente475dacc1b4a36c9814527a802b0ac156c606b1c (diff)
downloadBufferBrowser-0992eebd80dbc7a1969c8868df9b0ca5e6b82aac.tar.gz
BufferBrowser-0992eebd80dbc7a1969c8868df9b0ca5e6b82aac.tar.bz2
BufferBrowser-0992eebd80dbc7a1969c8868df9b0ca5e6b82aac.zip
Remove outdated comments
-rw-r--r--lua/buffer_browser.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/lua/buffer_browser.lua b/lua/buffer_browser.lua
index 0683f4b..5bc4a3e 100644
--- a/lua/buffer_browser.lua
+++ b/lua/buffer_browser.lua
@@ -1,8 +1,6 @@
--[[
BUFFER BROWSER
Author: Marc Coquand
-
-The comments below the code can be used to test the functions. Run them in `lua %` or with a code runner, like sniprun.
]]
local api = vim.api
@@ -53,9 +51,6 @@ local function StateGoBack(state)
state.current = table.remove(state.previous, 1)
return state
end
--- local state = { current = 1, previous = { 2, 3 }, future = { 4, 5 } }
--- print(StateGoBack(StateGoBack(StateGoBack(state)))['current'])
--- > 3
local function StateGoForward(state)
-- Go forward in the state by setting current to the first element of future, and appending the current to the previous
@@ -70,8 +65,6 @@ local function StateGoForward(state)
return state
end
--- local state = { current = 1, previous = { 2, 3 }, future = { 4, 5 } }
--- print(StateGoForward(StateGoForward(StateGoForward(state)))['current'])
local function StateDelete(state, bufNr)
-- Delete bufNr from state.previous
@@ -107,9 +100,6 @@ local function StateDelete(state, bufNr)
end
return state
end
--- local state = { current = 1, previous = { 2, 3 }, future = { 4, 5 } }
--- print(StateDelete(state, 1)['current'])
--- -- > 2
local function stateIsEmpty(state)
return (state.current == nil and state.previous == nil and state.future == nil)