Mercurial > vim
diff runtime/doc/quickfix.txt @ 13062:6479dadcf214 v8.0.1406
patch 8.0.1406: difficult to track changes to a quickfix list
commit https://github.com/vim/vim/commit/b254af312d1696b12367085acfbe41a41b7f1ea5
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 18 19:48:58 2017 +0100
patch 8.0.1406: difficult to track changes to a quickfix list
Problem: Difficult to track changes to a quickfix list.
Solution: Add a "changedtick" value. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2460)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Dec 2017 20:00:06 +0100 |
parents | a6d3e2081544 |
children | 02b3f719eacb |
line wrap: on
line diff
--- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -64,6 +64,14 @@ When a window with a location list is sp location list. When there are no longer any references to a location list, the location list is destroyed. + *quickfix-changedtick* +Every quickfix and location list has a read-only changedtick variable that +tracks the total number of changes made to the list. Every time the quickfix +list is modified, this count is incremented. This can be used to perform an +action only when the list has changed. The getqflist() and getloclist() +functions can be used to query the current value of changedtick. You cannot +change the changedtick variable. + The following quickfix commands can be used. The location list commands are similar to the quickfix commands, replacing the 'c' prefix in the quickfix command with 'l'.