vim-patch:8.1.0314: add swapinfo() "dirty" item

Problem:    Build failure without the +eval feature. (Brenton Horne)
Solution:   Add #ifdef.  Also add the "dirty" item.
47ad5656e1
This commit is contained in:
Justin M. Keyes
2019-04-29 19:59:54 +02:00
parent 24b7462b3c
commit 39e3783c69
3 changed files with 10 additions and 6 deletions

View File

@@ -7770,10 +7770,12 @@ swapinfo({fname}) swapinfo()
file
mtime last modification time in seconds
inode Optional: INODE number of the file
dirty 1 if file was modified, 0 if not
In case of failure an "error" item is added with the reason:
Cannot open file: file not found or in accessible
Cannot read file: cannot read first block
magic number mismatch: info in first block is invalid
Not a swap file: does not contain correct block ID
Magic number mismatch: Info in first block is invalid
synID({lnum}, {col}, {trans}) *synID()*
The result is a Number, which is the syntax ID at the position