Mercurial > vim
view runtime/tools/mve.awk @ 29633:e80174903fdf v9.0.0157
patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop
Commit: https://github.com/vim/vim/commit/cba6952e3499f85545c274873c67bb843d3f3518
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 21:03:53 2022 +0100
patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop
Problem: 'showbreak' displayed below truncated "after" text prop.
Solution: Suppress 'showbreak' when "after" prop doesn't wrap.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Aug 2022 22:15:06 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#!/usr/bin/nawk -f # # Change "nawk" to "awk" or "gawk" if you get errors. # # Make Vim Errors # Processes errors from cc for use by Vim's quick fix tools # specifically it translates the ---------^ notation to a # column number # BEGIN { FS="[:,]" } /^cfe/ { file=$3 msg=$5 split($4,s," ") line=s[2] } # You may have to substitute a tab character for the \t here: /^[\t-]*\^/ { p=match($0, ".*\\^" ) col=RLENGTH-2 printf("%s, line %d, col %d : %s\n", file,line,col,msg) }