aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-20 12:49:42 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-20 13:33:59 -0400
commit783aa6b507bc40565c0b7dbd146beaa7645e72c5 (patch)
treec9963880f21c3a771db3109b61157352500d740b /runtime
parentb9ba1295b466a440600b36a717c701bfcea53dbc (diff)
downloadrneovim-783aa6b507bc40565c0b7dbd146beaa7645e72c5.tar.gz
rneovim-783aa6b507bc40565c0b7dbd146beaa7645e72c5.tar.bz2
rneovim-783aa6b507bc40565c0b7dbd146beaa7645e72c5.zip
vim-patch:8.0.1514: getting the list of changes is not easy
Problem: Getting the list of changes is not easy. Solution: Add the getchangelist() function. (Yegappan Lakshmanan, closes vim/vim#2634) https://github.com/vim/vim/commit/07ad816525da67cab3c0db21d1286d221dbc7477
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt17
-rw-r--r--runtime/doc/usr_41.txt1
2 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 22157206a4..b88138aea3 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2081,6 +2081,7 @@ getbufline({expr}, {lnum} [, {end}])
List lines {lnum} to {end} of buffer {expr}
getbufvar({expr}, {varname} [, {def}])
any variable {varname} in buffer {expr}
+getchangelist({expr}) List list of change list items
getchar([expr]) Number get one character from the user
getcharmod() Number modifiers for the last typed character
getcharsearch() Dict last character search
@@ -4013,6 +4014,22 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
:let bufmodified = getbufvar(1, "&mod")
:echo "todo myvar = " . getbufvar("todo", "myvar")
<
+getchangelist({expr}) *getchangelist()*
+ Returns the |changelist| for the buffer {expr}. For the use
+ of {expr}, see |bufname()| above. If buffer {expr} doesn't
+ exist, an empty list is returned.
+
+ The returned list contains two entries: a list with the change
+ locations and the current position in the list. Each
+ entry in the change list is a dictionary with the following
+ entries:
+ col column number
+ coladd column offset for 'virtualedit'
+ lnum line number
+ If buffer {expr} is the current buffer, then the current
+ position refers to the position in the list. For other
+ buffers, it is set to the length of the list.
+
getchar([expr]) *getchar()*
Get a single character from the user or input stream.
If [expr] is omitted, wait until a character is available.
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 87164c8d90..234aba1932 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -806,6 +806,7 @@ Buffers, windows and the argument list:
getbufinfo() get a list with buffer information
gettabinfo() get a list with tab page information
getwininfo() get a list with window information
+ getchangelist() get a list of change list entries
getjumplist() get a list of jump list entries
Command line: *command-line-functions*