Skip to content

Commit

Permalink
fix(window): upstream bug, set winhl change curswant (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 committed Jan 13, 2024
1 parent abdc3a5 commit b0741a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/ufo/model/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ function Window:setCursorFoldedLineHighlight()
-- Upstream bug: Error in decoration provider (UNKNOWN PLUGIN).end
require('promise').resolve():thenCall(function()
utils.winCall(self.winid, function()
-- TODO
-- Upstream bug: `setl winhl` change curswant
local view = utils.saveView(0)
cmd('setl winhl+=CursorLine:UfoCursorFoldedLine')
utils.restView(0, view)
end)
end)
self.isCurFoldHighlighted = true
Expand Down

0 comments on commit b0741a6

Please sign in to comment.