Mercurial > vim
view runtime/tools/mve.awk @ 29521:f538704ca03b v9.0.0102
patch 9.0.0102: reading past end of line with insert mode completion
Commit: https://github.com/vim/vim/commit/a6f9e300161f4cb54713da22f65b261595e8e614
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 28 21:51:37 2022 +0100
patch 9.0.0102: reading past end of line with insert mode completion
Problem: Reading past end of line with insert mode completion.
Solution: Check text length.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jul 2022 23:00:04 +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) }