From: Sergey Vartanov Date: Tue, 8 Jun 2021 21:37:34 +0000 (+0300) Subject: Possible fix for issue with indentation and fmt: skip (#2281) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/40fae18134916b8499bd992d8bef4ae23bcd2986?ds=sidebyside;hp=40fae18134916b8499bd992d8bef4ae23bcd2986 Possible fix for issue with indentation and fmt: skip (#2281) Not sure the fix is right. Here is what I found: issue is connected with line first.prefix = prefix[comment.consumed :] in `comments.py`. `first.prefix` is a prefix of the line, that ends with `# fmt: skip`, but `comment.consumed` is the length of the `" # fmt: skip"` string. If prefix length is greater than 14, `first.prefix` will grow every time we apply formatting. Fixes #2254 ---