Skip to content

Commit

Permalink
Return boolean in goBack function
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogut committed Nov 9, 2021
1 parent 30e1190 commit 5228490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/mkdnflow/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,10 @@ M.goBack = function()
vim.api.nvim_command("buffer "..prev_buf)
-- Pop the buffer we just navigated to off the top of the stack
buffer_stack.pop('main')
return true
else
print([[Can't go back any further!]])
return false
end
end

Expand Down

0 comments on commit 5228490

Please sign in to comment.