From 0992eebd80dbc7a1969c8868df9b0ca5e6b82aac Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Fri, 19 May 2023 14:32:33 -0500 Subject: Remove outdated comments --- lua/buffer_browser.lua | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lua/buffer_browser.lua') 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) -- cgit v1.2.3