Mercurial > vim
view runtime/syntax/whitespace.vim @ 24792:91c42289cbe1 v8.2.2934
patch 8.2.2934: ASAN error when using text from the clipboard
Commit: https://github.com/vim/vim/commit/24951a67c24e75ec4ff7506f8e2e789ccd786e89
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 4 18:33:49 2021 +0200
patch 8.2.2934: ASAN error when using text from the clipboard
Problem: ASAN error when using text from the clipboard.
Solution: Get width of each character.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Jun 2021 18:45:03 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
" Simplistic way to make spaces and Tabs visible " This can be added to an already active syntax. syn match Space " " syn match Tab "\t" if &background == "dark" hi def Space ctermbg=darkred guibg=#500000 hi def Tab ctermbg=darkgreen guibg=#003000 else hi def Space ctermbg=lightred guibg=#ffd0d0 hi def Tab ctermbg=lightgreen guibg=#d0ffd0 endif