Skip to content

Commit ec92f60

Browse files
fix: handle nil windows on WinResized
## Details Issue: #455
1 parent b8ee8bc commit ec92f60

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44

55
### Features
66

7+
- configurable language border [b8ee8bc](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/b8ee8bcefd6f5319beb7d3df5237c68e5c5376ac)
78
- change code.border to thin instead of hide if version < 0.11.0 [a706be7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/a706be739257a6203524741da2da540bc190bbe2)
89
- allow image links to use custom icons based on destination [ac3e74f](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/ac3e74ffdb0bcf7282445ac12083fb6bd44858a1)
910

11+
### Collaborator Shoutouts
12+
13+
- @malasee
14+
1015
## 8.5.0 (2025-06-10)
1116

1217
### Features

doc/render-markdown.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For NVIM v0.11.2 Last change: 2025 June 19
1+
*render-markdown.txt* For NVIM v0.11.2 Last change: 2025 June 20
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*

lua/render-markdown/core/manager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function M.init()
4444
vim.api.nvim_create_autocmd('WinResized', {
4545
group = M.group,
4646
callback = function(args)
47-
for _, win in ipairs(vim.v.event.windows) do
47+
for _, win in ipairs(vim.v.event.windows or {}) do
4848
local buf = env.win.buf(win)
4949
if M.attached(buf) and state.get(buf).enabled then
5050
ui.update(buf, win, args.event, true)

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local state = require('render-markdown.state')
55
local M = {}
66

77
---@private
8-
M.version = '8.5.6'
8+
M.version = '8.5.7'
99

1010
function M.check()
1111
M.start('version')

0 commit comments

Comments
 (0)