view runtime/tools/mve.awk @ 32260:8f77a43f8aac v9.0.1461

patch 9.0.1461: ruler not drawn correctly when using 'rulerformat' Commit: https://github.com/vim/vim/commit/fc8a601c3251c0388a88c1235b18c529385f7196 Author: Sean Dewar <seandewar@users.noreply.github.com> Date: Mon Apr 17 16:41:20 2023 +0100 patch 9.0.1461: ruler not drawn correctly when using 'rulerformat' Problem: Ruler not drawn correctly when using 'rulerformat'. Solution: Adjust formatting depending on whether the ruler is drawn in the statusline or the command line. (Sean Dewar, closes #12246)
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Apr 2023 17:45: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)
}