Mercurial > vim
view runtime/tools/mve.awk @ 27746:2d24aad37e60 v8.2.4399
patch 8.2.4399: crash after ml_get error
Commit: https://github.com/vim/vim/commit/f9435e49ef8032e80d38e31e950e4a9b75387533
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 16 16:33:28 2022 +0000
patch 8.2.4399: crash after ml_get error
Problem: Crash after ml_get error.
Solution: When returning "???" flush the line and set ml_line_lnum.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Feb 2022 17:45:03 +0100 |
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) }