Skip to content

Commit

Permalink
Move comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Jul 12, 2023
1 parent 5aba7e0 commit dbd17a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/scrollview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,8 @@ local show_scrollbar = function(winid, bar_winid)
if bar_bufnr == -1 then
bar_bufnr = api.nvim_create_buf(false, true)
end
fn.bufload(bar_bufnr) -- Other plugins might have unloaded. #104
-- Other plugins might have unloaded the buffer. #104
fn.bufload(bar_bufnr)
api.nvim_buf_set_option(bar_bufnr, 'modifiable', false)
api.nvim_buf_set_option(bar_bufnr, 'filetype', 'scrollview')
api.nvim_buf_set_option(bar_bufnr, 'buftype', 'nofile')
Expand Down Expand Up @@ -1404,7 +1405,8 @@ local show_signs = function(winid, sign_winids)
if sign_bufnr == -1 then
sign_bufnr = api.nvim_create_buf(false, true)
end
fn.bufload(sign_bufnr) -- Other plugins might have unloaded. #104
-- Other plugins might have unloaded the buffer. #104
fn.bufload(sign_bufnr)
api.nvim_buf_set_option(sign_bufnr, 'modifiable', false)
api.nvim_buf_set_option(sign_bufnr, 'filetype', 'scrollview_sign')
api.nvim_buf_set_option(sign_bufnr, 'buftype', 'nofile')
Expand Down

0 comments on commit dbd17a6

Please sign in to comment.