comparison src/tag.c @ 1883:c8f343a465a2 v7.2.180

updated for version 7.2-180
author vimboss
date Sun, 17 May 2009 11:33:22 +0000
parents b5c1cb6f8d56
children 3112fcc89238
comparison
equal deleted inserted replaced
1882:c8b87fa14d27 1883:c8f343a465a2
98 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) 98 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
99 /* 99 /*
100 * Tag for preview window is remembered separately, to avoid messing up the 100 * Tag for preview window is remembered separately, to avoid messing up the
101 * normal tagstack. 101 * normal tagstack.
102 */ 102 */
103 static taggy_T ptag_entry = {NULL}; 103 static taggy_T ptag_entry = {NULL, {INIT_POS_T(0, 0, 0), 0}, 0, 0};
104 #endif 104 #endif
105 105
106 /* 106 /*
107 * Jump to tag; handling of tag commands and tag stack 107 * Jump to tag; handling of tag commands and tag stack
108 * 108 *
3789 end = start + STRLEN(start); 3789 end = start + STRLEN(start);
3790 while (end > start && (end[-1] == '\r' || end[-1] == '\n')) 3790 while (end > start && (end[-1] == '\r' || end[-1] == '\n'))
3791 --end; 3791 --end;
3792 } 3792 }
3793 len = (int)(end - start); 3793 len = (int)(end - start);
3794 if (len > sizeof(buf) - 1) 3794 if (len > (int)sizeof(buf) - 1)
3795 len = sizeof(buf) - 1; 3795 len = sizeof(buf) - 1;
3796 vim_strncpy(buf, start, len); 3796 vim_strncpy(buf, start, len);
3797 } 3797 }
3798 buf[len] = NUL; 3798 buf[len] = NUL;
3799 return dict_add_nr_str(dict, field_name, 0L, buf); 3799 return dict_add_nr_str(dict, field_name, 0L, buf);