diff options
author | vimboss <devnull@localhost> | 2005-03-16 09:50:44 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2005-03-16 09:50:44 +0000 |
commit | 8e2ca167ff52250c717434e6f1b5898bdaf5c7a1 (patch) | |
tree | 557d26d9df3a6f4843ce9dffc38166e298f40157 | |
parent | 75560fbc2dd916636503433ba42604678705d76e (diff) | |
download | vim-8e2ca167ff52250c717434e6f1b5898bdaf5c7a1.tar.gz |
updated for version 7.0060
-rw-r--r-- | runtime/doc/usr_41.txt | 3 | ||||
-rw-r--r-- | src/tag.c | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index 17bc3eac..27349896 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -1,4 +1,4 @@ -*usr_41.txt* For Vim version 7.0aa. Last change: 2005 Feb 23 +*usr_41.txt* For Vim version 7.0aa. Last change: 2005 Mar 15 VIM USER MANUAL - by Bram Moolenaar @@ -758,6 +758,7 @@ Various: getreg() get contents of a register getregtype() get type of a register setreg() set contents and type of a register + taglist() get list of matching tags ============================================================================== *41.7* Defining a function @@ -3547,14 +3547,20 @@ static int add_tag_field __ARGS((dict_T *dict, char *field_name, char_u *start, add_tag_field(dict, field_name, start, end) dict_T *dict; char *field_name; - char_u *start; - char_u *end; + char_u *start; /* start of the value */ + char_u *end; /* after the value; can be NULL */ { char_u buf[MAXPATHL]; int len = 0; if (start != NULL) { + if (end == NULL) + { + end = start + STRLEN(start); + while (end > start && (end[-1] == '\r' || end[-1] == '\n')) + --end; + } len = end - start; if (len > sizeof(buf) - 1) len = sizeof(buf) - 1; |