Skip to content

Clear synmaxcol in scratch buffer to fix display bug #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m1foley
Copy link

@m1foley m1foley commented Jun 4, 2025

Bug

My .vimrc contains:

set synmaxcol=256

When my buffer width is especially large, the Simplenote list looks garbled when I run :SimplenoteList (for display purposes I compressed the whitespace between the titles and timestamps, and the actual titles are redacted with "X"):

|d|XXXX|                                [|D|2025-06-04 11:59:54|]
|y|XXXXXXXXXXXXX|                       [|D|2025-04-03 19:54:48|]
|d|XXXXXXXXXXXXXXXXXXXXXXXXXX|          [|D|2025-06-03 21:01:25|]
|d|XXXXXXXXXXXXXXXXXXXXXXXX|            [|D|2025-06-03 21:00:43|]
|w|XXXXXXXXXXXXXXXX|                    [|D|2025-06-01 18:42:07|]
|w|XXXXXXXXX|                           [|D|2025-06-01 12:54:55|]
|w|XXXXXXXXXXXXXXXXXXXXXXX|             [|D|2025-05-28 13:13:53|]
|m|XXXX|                                [|D|2025-05-21 18:42:20|]
|m|XXXXXXXXXXXXXXXXXX|                  [|D|2025-05-16 23:55:37|]

Fix

Clearing synmaxcol when opening a Simplenote scratch buffer fixes the bug.

Alternatives

Users might want synmaxcol enabled within the Simplenote notes themselves, so it might be more precise to only clear synmaxcol in the index and note the notes, but I don't know how to do that.

Fixes a display bug: If `:SimplenoteList` is called and synmaxcol is
set, the Simplenote content becomes garbled if the buffer width exceeds
synmaxcol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant