Skip to content

Commit e80a1bb

Browse files
committed
fix: disable conceal in diff views (relevant for markdown & json)
1 parent 8a102f6 commit e80a1bb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/tinygit/commands/history.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ local function showDiff(commitIdx)
187187
zindex = historyZindex,
188188
})
189189
vim.wo[winnr].winfixheight = true
190+
vim.wo[winnr].conceallevel = 0 -- do not hide chars in markdown/json
190191
backdrop.new(bufnr, historyZindex)
191192

192193
-- search for the query

lua/tinygit/commands/staging/telescope.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ function M.pickHunk(hunks)
131131
local diffLines = vim.split(hunk.patch, "\n")
132132
local ft = getFiletype(hunk.absPath)
133133
setDiffBuffer(bufnr, diffLines, ft, false)
134+
vim.wo[self.state.winid].conceallevel = 0 -- do not hide chars in markdown/json
134135
end,
135136
---@param entry { value: Tinygit.Hunk }
136137
dyn_title = function(_, entry)

0 commit comments

Comments
 (0)