From 7f4bc817ec396e63dba475a4ab77787145019f0a Mon Sep 17 00:00:00 2001 From: Michael Foley Date: Wed, 4 Jun 2025 12:37:34 -0700 Subject: [PATCH] Clear synmaxcol in scratch buffer to fix display bug Fixes a display bug: If `:SimplenoteList` is called and synmaxcol is set, the Simplenote content becomes garbled if the buffer width exceeds synmaxcol. --- autoload/simplenote.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/simplenote.vim b/autoload/simplenote.vim index 0c26356..92477e5 100644 --- a/autoload/simplenote.vim +++ b/autoload/simplenote.vim @@ -173,6 +173,7 @@ function! s:ScratchBuffer() setlocal bufhidden=hide setlocal noswapfile setlocal cursorline + setlocal synmaxcol=0 if (s:vbuff == 0) && (s:listsize > 0) " exe "resize " . s:listsize