Mercurial > vim
annotate src/version.c @ 3328:a27fac494e70 v7.3.431
updated for version 7.3.431
Problem: Fetching a key at a prompt may be confused by escape sequences.
Especially when getting a prompt at a VimEnter autocommand.
(Alex Efros)
Solution: Properly handle escape sequences deleted by check_termcode().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 05 Feb 2012 22:05:48 +0100 |
parents | a9f8dd20a49f |
children | 81201fb337a5 |
rev | line source |
---|---|
7 | 1 /* vi:set ts=8 sts=4 sw=4: |
2 * | |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 * See README.txt for an overview of the Vim source code. | |
8 */ | |
9 | |
10 #include "vim.h" | |
11 | |
12 #ifdef AMIGA | |
13 # include <time.h> /* for time() */ | |
14 #endif | |
15 | |
16 /* | |
17 * Vim originated from Stevie version 3.6 (Fish disk 217) by GRWalter (Fred) | |
18 * It has been changed beyond recognition since then. | |
19 * | |
26 | 20 * Differences between version 6.x and 7.x can be found with ":help version7". |
7 | 21 * Differences between version 5.x and 6.x can be found with ":help version6". |
22 * Differences between version 4.x and 5.x can be found with ":help version5". | |
23 * Differences between version 3.0 and 4.x can be found with ":help version4". | |
24 * All the remarks about older versions have been removed, they are not very | |
25 * interesting. | |
26 */ | |
27 | |
28 #include "version.h" | |
29 | |
378 | 30 char *Version = VIM_VERSION_SHORT; |
31 static char *mediumVersion = VIM_VERSION_MEDIUM; | |
7 | 32 |
33 #if defined(HAVE_DATE_TIME) || defined(PROTO) | |
34 # if (defined(VMS) && defined(VAXC)) || defined(PROTO) | |
35 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) | |
36 + sizeof(__TIME__) + 3]; | |
37 void | |
38 make_version() | |
39 { | |
40 /* | |
41 * Construct the long version string. Necessary because | |
42 * VAX C can't catenate strings in the preprocessor. | |
43 */ | |
44 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
45 strcat(longVersion, __DATE__); | |
46 strcat(longVersion, " "); | |
47 strcat(longVersion, __TIME__); | |
48 strcat(longVersion, ")"); | |
49 } | |
50 # else | |
51 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
52 # endif | |
53 #else | |
54 char *longVersion = VIM_VERSION_LONG; | |
55 #endif | |
56 | |
57 static void version_msg __ARGS((char *s)); | |
58 | |
59 static char *(features[]) = | |
60 { | |
61 #ifdef AMIGA /* only for Amiga systems */ | |
62 # ifdef FEAT_ARP | |
63 "+ARP", | |
64 # else | |
65 "-ARP", | |
66 # endif | |
67 #endif | |
68 #ifdef FEAT_ARABIC | |
69 "+arabic", | |
70 #else | |
71 "-arabic", | |
72 #endif | |
73 #ifdef FEAT_AUTOCMD | |
74 "+autocmd", | |
75 #else | |
76 "-autocmd", | |
77 #endif | |
78 #ifdef FEAT_BEVAL | |
79 "+balloon_eval", | |
80 #else | |
81 "-balloon_eval", | |
82 #endif | |
83 #ifdef FEAT_BROWSE | |
84 "+browse", | |
85 #else | |
86 "-browse", | |
87 #endif | |
88 #ifdef NO_BUILTIN_TCAPS | |
89 "-builtin_terms", | |
90 #endif | |
91 #ifdef SOME_BUILTIN_TCAPS | |
92 "+builtin_terms", | |
93 #endif | |
94 #ifdef ALL_BUILTIN_TCAPS | |
95 "++builtin_terms", | |
96 #endif | |
97 #ifdef FEAT_BYTEOFF | |
98 "+byte_offset", | |
99 #else | |
100 "-byte_offset", | |
101 #endif | |
102 #ifdef FEAT_CINDENT | |
103 "+cindent", | |
104 #else | |
105 "-cindent", | |
106 #endif | |
107 #ifdef FEAT_CLIENTSERVER | |
108 "+clientserver", | |
109 #else | |
110 "-clientserver", | |
111 #endif | |
112 #ifdef FEAT_CLIPBOARD | |
113 "+clipboard", | |
114 #else | |
115 "-clipboard", | |
116 #endif | |
117 #ifdef FEAT_CMDL_COMPL | |
118 "+cmdline_compl", | |
119 #else | |
120 "-cmdline_compl", | |
121 #endif | |
122 #ifdef FEAT_CMDHIST | |
123 "+cmdline_hist", | |
124 #else | |
125 "-cmdline_hist", | |
126 #endif | |
127 #ifdef FEAT_CMDL_INFO | |
128 "+cmdline_info", | |
129 #else | |
130 "-cmdline_info", | |
131 #endif | |
132 #ifdef FEAT_COMMENTS | |
133 "+comments", | |
134 #else | |
135 "-comments", | |
136 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
137 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
138 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
139 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
140 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
141 #endif |
7 | 142 #ifdef FEAT_CRYPT |
143 "+cryptv", | |
144 #else | |
145 "-cryptv", | |
146 #endif | |
147 #ifdef FEAT_CSCOPE | |
148 "+cscope", | |
149 #else | |
150 "-cscope", | |
151 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
152 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
153 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
154 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
155 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
156 #endif |
647 | 157 #ifdef CURSOR_SHAPE |
158 "+cursorshape", | |
159 #else | |
160 "-cursorshape", | |
161 #endif | |
7 | 162 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
163 "+dialog_con_gui", | |
164 #else | |
165 # if defined(FEAT_CON_DIALOG) | |
166 "+dialog_con", | |
167 # else | |
168 # if defined(FEAT_GUI_DIALOG) | |
169 "+dialog_gui", | |
170 # else | |
171 "-dialog", | |
172 # endif | |
173 # endif | |
174 #endif | |
175 #ifdef FEAT_DIFF | |
176 "+diff", | |
177 #else | |
178 "-diff", | |
179 #endif | |
180 #ifdef FEAT_DIGRAPHS | |
181 "+digraphs", | |
182 #else | |
183 "-digraphs", | |
184 #endif | |
185 #ifdef FEAT_DND | |
186 "+dnd", | |
187 #else | |
188 "-dnd", | |
189 #endif | |
190 #ifdef EBCDIC | |
191 "+ebcdic", | |
192 #else | |
193 "-ebcdic", | |
194 #endif | |
195 #ifdef FEAT_EMACS_TAGS | |
196 "+emacs_tags", | |
197 #else | |
198 "-emacs_tags", | |
199 #endif | |
200 #ifdef FEAT_EVAL | |
201 "+eval", | |
202 #else | |
203 "-eval", | |
204 #endif | |
205 #ifdef FEAT_EX_EXTRA | |
206 "+ex_extra", | |
207 #else | |
208 "-ex_extra", | |
209 #endif | |
210 #ifdef FEAT_SEARCH_EXTRA | |
211 "+extra_search", | |
212 #else | |
213 "-extra_search", | |
214 #endif | |
215 #ifdef FEAT_FKMAP | |
216 "+farsi", | |
217 #else | |
218 "-farsi", | |
219 #endif | |
220 #ifdef FEAT_SEARCHPATH | |
221 "+file_in_path", | |
222 #else | |
223 "-file_in_path", | |
224 #endif | |
225 #ifdef FEAT_FIND_ID | |
226 "+find_in_path", | |
227 #else | |
228 "-find_in_path", | |
229 #endif | |
1621 | 230 #ifdef FEAT_FLOAT |
231 "+float", | |
232 #else | |
233 "-float", | |
234 #endif | |
7 | 235 #ifdef FEAT_FOLDING |
236 "+folding", | |
237 #else | |
238 "-folding", | |
239 #endif | |
240 #ifdef FEAT_FOOTER | |
241 "+footer", | |
242 #else | |
243 "-footer", | |
244 #endif | |
245 /* only interesting on Unix systems */ | |
246 #if !defined(USE_SYSTEM) && defined(UNIX) | |
247 "+fork()", | |
248 #endif | |
249 #ifdef FEAT_GETTEXT | |
250 # ifdef DYNAMIC_GETTEXT | |
251 "+gettext/dyn", | |
252 # else | |
253 "+gettext", | |
254 # endif | |
255 #else | |
256 "-gettext", | |
257 #endif | |
258 #ifdef FEAT_HANGULIN | |
259 "+hangul_input", | |
260 #else | |
261 "-hangul_input", | |
262 #endif | |
263 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
264 # ifdef DYNAMIC_ICONV | |
265 "+iconv/dyn", | |
266 # else | |
267 "+iconv", | |
268 # endif | |
269 #else | |
270 "-iconv", | |
271 #endif | |
272 #ifdef FEAT_INS_EXPAND | |
273 "+insert_expand", | |
274 #else | |
275 "-insert_expand", | |
276 #endif | |
277 #ifdef FEAT_JUMPLIST | |
278 "+jumplist", | |
279 #else | |
280 "-jumplist", | |
281 #endif | |
282 #ifdef FEAT_KEYMAP | |
283 "+keymap", | |
284 #else | |
285 "-keymap", | |
286 #endif | |
287 #ifdef FEAT_LANGMAP | |
288 "+langmap", | |
289 #else | |
290 "-langmap", | |
291 #endif | |
292 #ifdef FEAT_LIBCALL | |
293 "+libcall", | |
294 #else | |
295 "-libcall", | |
296 #endif | |
297 #ifdef FEAT_LINEBREAK | |
298 "+linebreak", | |
299 #else | |
300 "-linebreak", | |
301 #endif | |
302 #ifdef FEAT_LISP | |
303 "+lispindent", | |
304 #else | |
305 "-lispindent", | |
306 #endif | |
307 #ifdef FEAT_LISTCMDS | |
308 "+listcmds", | |
309 #else | |
310 "-listcmds", | |
311 #endif | |
312 #ifdef FEAT_LOCALMAP | |
313 "+localmap", | |
314 #else | |
315 "-localmap", | |
316 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
317 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
318 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
319 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
320 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
321 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
322 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
323 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
324 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
325 #endif |
7 | 326 #ifdef FEAT_MENU |
327 "+menu", | |
328 #else | |
329 "-menu", | |
330 #endif | |
331 #ifdef FEAT_SESSION | |
332 "+mksession", | |
333 #else | |
334 "-mksession", | |
335 #endif | |
336 #ifdef FEAT_MODIFY_FNAME | |
337 "+modify_fname", | |
338 #else | |
339 "-modify_fname", | |
340 #endif | |
341 #ifdef FEAT_MOUSE | |
342 "+mouse", | |
343 # ifdef FEAT_MOUSESHAPE | |
344 "+mouseshape", | |
345 # else | |
346 "-mouseshape", | |
347 # endif | |
348 # else | |
349 "-mouse", | |
350 #endif | |
351 #if defined(UNIX) || defined(VMS) | |
352 # ifdef FEAT_MOUSE_DEC | |
353 "+mouse_dec", | |
354 # else | |
355 "-mouse_dec", | |
356 # endif | |
357 # ifdef FEAT_MOUSE_GPM | |
358 "+mouse_gpm", | |
359 # else | |
360 "-mouse_gpm", | |
361 # endif | |
362 # ifdef FEAT_MOUSE_JSB | |
363 "+mouse_jsbterm", | |
364 # else | |
365 "-mouse_jsbterm", | |
366 # endif | |
367 # ifdef FEAT_MOUSE_NET | |
368 "+mouse_netterm", | |
369 # else | |
370 "-mouse_netterm", | |
371 # endif | |
1621 | 372 # ifdef FEAT_SYSMOUSE |
373 "+mouse_sysmouse", | |
374 # else | |
375 "-mouse_sysmouse", | |
376 # endif | |
7 | 377 # ifdef FEAT_MOUSE_XTERM |
378 "+mouse_xterm", | |
379 # else | |
380 "-mouse_xterm", | |
381 # endif | |
3145 | 382 # ifdef FEAT_MOUSE_URXVT |
383 "+mouse_urxvt", | |
384 # else | |
385 "-mouse_urxvt", | |
386 # endif | |
7 | 387 #endif |
388 #ifdef __QNX__ | |
389 # ifdef FEAT_MOUSE_PTERM | |
390 "+mouse_pterm", | |
391 # else | |
392 "-mouse_pterm", | |
393 # endif | |
394 #endif | |
395 #ifdef FEAT_MBYTE_IME | |
396 # ifdef DYNAMIC_IME | |
397 "+multi_byte_ime/dyn", | |
398 # else | |
399 "+multi_byte_ime", | |
400 # endif | |
401 #else | |
402 # ifdef FEAT_MBYTE | |
403 "+multi_byte", | |
404 # else | |
405 "-multi_byte", | |
406 # endif | |
407 #endif | |
408 #ifdef FEAT_MULTI_LANG | |
409 "+multi_lang", | |
410 #else | |
411 "-multi_lang", | |
412 #endif | |
14 | 413 #ifdef FEAT_MZSCHEME |
132 | 414 # ifdef DYNAMIC_MZSCHEME |
415 "+mzscheme/dyn", | |
416 # else | |
14 | 417 "+mzscheme", |
132 | 418 # endif |
14 | 419 #else |
420 "-mzscheme", | |
421 #endif | |
7 | 422 #ifdef FEAT_NETBEANS_INTG |
423 "+netbeans_intg", | |
424 #else | |
425 "-netbeans_intg", | |
426 #endif | |
427 #ifdef FEAT_GUI_W32 | |
428 # ifdef FEAT_OLE | |
429 "+ole", | |
430 # else | |
431 "-ole", | |
432 # endif | |
433 #endif | |
434 #ifdef FEAT_PATH_EXTRA | |
435 "+path_extra", | |
436 #else | |
437 "-path_extra", | |
438 #endif | |
439 #ifdef FEAT_PERL | |
440 # ifdef DYNAMIC_PERL | |
441 "+perl/dyn", | |
442 # else | |
443 "+perl", | |
444 # endif | |
445 #else | |
446 "-perl", | |
447 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
448 #ifdef FEAT_PERSISTENT_UNDO |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
449 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
450 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
451 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
452 #endif |
7 | 453 #ifdef FEAT_PRINTER |
454 # ifdef FEAT_POSTSCRIPT | |
455 "+postscript", | |
456 # else | |
457 "-postscript", | |
458 # endif | |
459 "+printer", | |
460 #else | |
461 "-printer", | |
462 #endif | |
170 | 463 #ifdef FEAT_PROFILE |
464 "+profile", | |
465 #else | |
466 "-profile", | |
467 #endif | |
7 | 468 #ifdef FEAT_PYTHON |
469 # ifdef DYNAMIC_PYTHON | |
470 "+python/dyn", | |
471 # else | |
472 "+python", | |
473 # endif | |
474 #else | |
475 "-python", | |
476 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
477 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
478 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
479 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
480 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
481 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
482 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
483 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
484 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
485 #endif |
7 | 486 #ifdef FEAT_QUICKFIX |
487 "+quickfix", | |
488 #else | |
489 "-quickfix", | |
490 #endif | |
857 | 491 #ifdef FEAT_RELTIME |
492 "+reltime", | |
493 #else | |
494 "-reltime", | |
495 #endif | |
7 | 496 #ifdef FEAT_RIGHTLEFT |
497 "+rightleft", | |
498 #else | |
499 "-rightleft", | |
500 #endif | |
501 #ifdef FEAT_RUBY | |
502 # ifdef DYNAMIC_RUBY | |
503 "+ruby/dyn", | |
504 # else | |
505 "+ruby", | |
506 # endif | |
507 #else | |
508 "-ruby", | |
509 #endif | |
510 #ifdef FEAT_SCROLLBIND | |
511 "+scrollbind", | |
512 #else | |
513 "-scrollbind", | |
514 #endif | |
515 #ifdef FEAT_SIGNS | |
516 "+signs", | |
517 #else | |
518 "-signs", | |
519 #endif | |
520 #ifdef FEAT_SMARTINDENT | |
521 "+smartindent", | |
522 #else | |
523 "-smartindent", | |
524 #endif | |
525 #ifdef FEAT_SNIFF | |
526 "+sniff", | |
527 #else | |
528 "-sniff", | |
529 #endif | |
1989 | 530 #ifdef STARTUPTIME |
531 "+startuptime", | |
532 #else | |
533 "-startuptime", | |
534 #endif | |
7 | 535 #ifdef FEAT_STL_OPT |
536 "+statusline", | |
537 #else | |
538 "-statusline", | |
539 #endif | |
540 #ifdef FEAT_SUN_WORKSHOP | |
541 "+sun_workshop", | |
542 #else | |
543 "-sun_workshop", | |
544 #endif | |
545 #ifdef FEAT_SYN_HL | |
546 "+syntax", | |
547 #else | |
548 "-syntax", | |
549 #endif | |
550 /* only interesting on Unix systems */ | |
551 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
552 "+system()", | |
553 #endif | |
554 #ifdef FEAT_TAG_BINS | |
555 "+tag_binary", | |
556 #else | |
557 "-tag_binary", | |
558 #endif | |
559 #ifdef FEAT_TAG_OLDSTATIC | |
560 "+tag_old_static", | |
561 #else | |
562 "-tag_old_static", | |
563 #endif | |
564 #ifdef FEAT_TAG_ANYWHITE | |
565 "+tag_any_white", | |
566 #else | |
567 "-tag_any_white", | |
568 #endif | |
569 #ifdef FEAT_TCL | |
570 # ifdef DYNAMIC_TCL | |
571 "+tcl/dyn", | |
572 # else | |
573 "+tcl", | |
574 # endif | |
575 #else | |
576 "-tcl", | |
577 #endif | |
578 #if defined(UNIX) || defined(__EMX__) | |
579 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
580 # ifdef TERMINFO | |
581 "+terminfo", | |
582 # else | |
583 "-terminfo", | |
584 # endif | |
585 #else /* unix always includes termcap support */ | |
586 # ifdef HAVE_TGETENT | |
587 "+tgetent", | |
588 # else | |
589 "-tgetent", | |
590 # endif | |
591 #endif | |
592 #ifdef FEAT_TERMRESPONSE | |
593 "+termresponse", | |
594 #else | |
595 "-termresponse", | |
596 #endif | |
597 #ifdef FEAT_TEXTOBJ | |
598 "+textobjects", | |
599 #else | |
600 "-textobjects", | |
601 #endif | |
602 #ifdef FEAT_TITLE | |
603 "+title", | |
604 #else | |
605 "-title", | |
606 #endif | |
607 #ifdef FEAT_TOOLBAR | |
608 "+toolbar", | |
609 #else | |
610 "-toolbar", | |
611 #endif | |
612 #ifdef FEAT_USR_CMDS | |
613 "+user_commands", | |
614 #else | |
615 "-user_commands", | |
616 #endif | |
617 #ifdef FEAT_VERTSPLIT | |
618 "+vertsplit", | |
619 #else | |
620 "-vertsplit", | |
621 #endif | |
622 #ifdef FEAT_VIRTUALEDIT | |
623 "+virtualedit", | |
624 #else | |
625 "-virtualedit", | |
626 #endif | |
627 #ifdef FEAT_VISUAL | |
628 "+visual", | |
629 # ifdef FEAT_VISUALEXTRA | |
630 "+visualextra", | |
631 # else | |
632 "-visualextra", | |
633 # endif | |
634 #else | |
635 "-visual", | |
636 #endif | |
637 #ifdef FEAT_VIMINFO | |
638 "+viminfo", | |
639 #else | |
640 "-viminfo", | |
641 #endif | |
642 #ifdef FEAT_VREPLACE | |
643 "+vreplace", | |
644 #else | |
645 "-vreplace", | |
646 #endif | |
647 #ifdef FEAT_WILDIGN | |
648 "+wildignore", | |
649 #else | |
650 "-wildignore", | |
651 #endif | |
652 #ifdef FEAT_WILDMENU | |
653 "+wildmenu", | |
654 #else | |
655 "-wildmenu", | |
656 #endif | |
657 #ifdef FEAT_WINDOWS | |
658 "+windows", | |
659 #else | |
660 "-windows", | |
661 #endif | |
662 #ifdef FEAT_WRITEBACKUP | |
663 "+writebackup", | |
664 #else | |
665 "-writebackup", | |
666 #endif | |
667 #if defined(UNIX) || defined(VMS) | |
668 # ifdef FEAT_X11 | |
669 "+X11", | |
670 # else | |
671 "-X11", | |
672 # endif | |
673 #endif | |
674 #ifdef FEAT_XFONTSET | |
675 "+xfontset", | |
676 #else | |
677 "-xfontset", | |
678 #endif | |
679 #ifdef FEAT_XIM | |
680 "+xim", | |
681 #else | |
682 "-xim", | |
683 #endif | |
684 #if defined(UNIX) || defined(VMS) | |
685 # ifdef USE_XSMP_INTERACT | |
686 "+xsmp_interact", | |
687 # else | |
688 # ifdef USE_XSMP | |
689 "+xsmp", | |
690 # else | |
691 "-xsmp", | |
692 # endif | |
693 # endif | |
694 # ifdef FEAT_XCLIPBOARD | |
695 "+xterm_clipboard", | |
696 # else | |
697 "-xterm_clipboard", | |
698 # endif | |
699 #endif | |
700 #ifdef FEAT_XTERM_SAVE | |
701 "+xterm_save", | |
702 #else | |
703 "-xterm_save", | |
704 #endif | |
705 #ifdef WIN3264 | |
706 # ifdef FEAT_XPM_W32 | |
707 "+xpm_w32", | |
708 # else | |
709 "-xpm_w32", | |
710 # endif | |
711 #endif | |
712 NULL | |
713 }; | |
714 | |
715 static int included_patches[] = | |
716 { /* Add new patch number below this line */ | |
717 /**/ | |
3328 | 718 431, |
719 /**/ | |
3326 | 720 430, |
721 /**/ | |
3324 | 722 429, |
723 /**/ | |
3322 | 724 428, |
725 /**/ | |
3320 | 726 427, |
727 /**/ | |
3318 | 728 426, |
729 /**/ | |
3316 | 730 425, |
731 /**/ | |
3314 | 732 424, |
733 /**/ | |
3312 | 734 423, |
735 /**/ | |
3310 | 736 422, |
737 /**/ | |
3308 | 738 421, |
739 /**/ | |
3306 | 740 420, |
741 /**/ | |
3304 | 742 419, |
743 /**/ | |
3302 | 744 418, |
745 /**/ | |
3300 | 746 417, |
747 /**/ | |
3298 | 748 416, |
749 /**/ | |
3294 | 750 415, |
751 /**/ | |
3292 | 752 414, |
753 /**/ | |
3290 | 754 413, |
755 /**/ | |
3288 | 756 412, |
757 /**/ | |
3286 | 758 411, |
759 /**/ | |
3284 | 760 410, |
761 /**/ | |
3282 | 762 409, |
763 /**/ | |
3279 | 764 408, |
765 /**/ | |
3277 | 766 407, |
767 /**/ | |
3275 | 768 406, |
769 /**/ | |
3273 | 770 405, |
771 /**/ | |
3271 | 772 404, |
773 /**/ | |
3269 | 774 403, |
775 /**/ | |
3267 | 776 402, |
777 /**/ | |
3265 | 778 401, |
779 /**/ | |
3263 | 780 400, |
781 /**/ | |
3261 | 782 399, |
783 /**/ | |
3259 | 784 398, |
785 /**/ | |
3257 | 786 397, |
787 /**/ | |
3254 | 788 396, |
789 /**/ | |
3252 | 790 395, |
791 /**/ | |
3250 | 792 394, |
793 /**/ | |
3248 | 794 393, |
795 /**/ | |
3246 | 796 392, |
797 /**/ | |
3244 | 798 391, |
799 /**/ | |
3242 | 800 390, |
801 /**/ | |
3240 | 802 389, |
803 /**/ | |
3238 | 804 388, |
805 /**/ | |
3235 | 806 387, |
807 /**/ | |
3233 | 808 386, |
809 /**/ | |
3231 | 810 385, |
811 /**/ | |
3229 | 812 384, |
813 /**/ | |
3227 | 814 383, |
815 /**/ | |
3225 | 816 382, |
817 /**/ | |
3222 | 818 381, |
819 /**/ | |
3220 | 820 380, |
821 /**/ | |
3218 | 822 379, |
823 /**/ | |
3216 | 824 378, |
825 /**/ | |
3214 | 826 377, |
827 /**/ | |
3212 | 828 376, |
829 /**/ | |
3210 | 830 375, |
831 /**/ | |
3208 | 832 374, |
833 /**/ | |
3206 | 834 373, |
835 /**/ | |
3204 | 836 372, |
837 /**/ | |
3202 | 838 371, |
839 /**/ | |
3200 | 840 370, |
841 /**/ | |
3198 | 842 369, |
843 /**/ | |
3196 | 844 368, |
845 /**/ | |
3194 | 846 367, |
847 /**/ | |
3192 | 848 366, |
849 /**/ | |
3190 | 850 365, |
851 /**/ | |
3188 | 852 364, |
853 /**/ | |
3186 | 854 363, |
855 /**/ | |
3184 | 856 362, |
857 /**/ | |
3182 | 858 361, |
859 /**/ | |
3180 | 860 360, |
861 /**/ | |
3178 | 862 359, |
863 /**/ | |
3176 | 864 358, |
865 /**/ | |
3174 | 866 357, |
867 /**/ | |
3172 | 868 356, |
869 /**/ | |
3170 | 870 355, |
871 /**/ | |
3168 | 872 354, |
873 /**/ | |
3166 | 874 353, |
875 /**/ | |
3164 | 876 352, |
877 /**/ | |
3162 | 878 351, |
879 /**/ | |
3160 | 880 350, |
881 /**/ | |
3158 | 882 349, |
883 /**/ | |
3156 | 884 348, |
885 /**/ | |
3154 | 886 347, |
887 /**/ | |
3151 | 888 346, |
889 /**/ | |
3149 | 890 345, |
891 /**/ | |
3147 | 892 344, |
893 /**/ | |
3145 | 894 343, |
895 /**/ | |
3143 | 896 342, |
897 /**/ | |
3141 | 898 341, |
899 /**/ | |
3139 | 900 340, |
901 /**/ | |
3137 | 902 339, |
903 /**/ | |
3135 | 904 338, |
905 /**/ | |
3133 | 906 337, |
907 /**/ | |
3131 | 908 336, |
909 /**/ | |
3129 | 910 335, |
911 /**/ | |
3127 | 912 334, |
913 /**/ | |
3125 | 914 333, |
915 /**/ | |
3123 | 916 332, |
917 /**/ | |
3121 | 918 331, |
919 /**/ | |
3119 | 920 330, |
921 /**/ | |
3116 | 922 329, |
923 /**/ | |
3114 | 924 328, |
925 /**/ | |
3112 | 926 327, |
927 /**/ | |
3110 | 928 326, |
929 /**/ | |
3108 | 930 325, |
931 /**/ | |
3106 | 932 324, |
933 /**/ | |
3104 | 934 323, |
935 /**/ | |
3102 | 936 322, |
937 /**/ | |
3100 | 938 321, |
939 /**/ | |
3097 | 940 320, |
941 /**/ | |
3095 | 942 319, |
943 /**/ | |
3093 | 944 318, |
945 /**/ | |
3091 | 946 317, |
947 /**/ | |
3089 | 948 316, |
949 /**/ | |
3087 | 950 315, |
951 /**/ | |
3085 | 952 314, |
953 /**/ | |
3083 | 954 313, |
955 /**/ | |
3080 | 956 312, |
957 /**/ | |
3078 | 958 311, |
959 /**/ | |
3076 | 960 310, |
961 /**/ | |
3074 | 962 309, |
963 /**/ | |
3072 | 964 308, |
965 /**/ | |
3070 | 966 307, |
967 /**/ | |
3068 | 968 306, |
969 /**/ | |
3066 | 970 305, |
971 /**/ | |
3064 | 972 304, |
973 /**/ | |
3062 | 974 303, |
975 /**/ | |
3060 | 976 302, |
977 /**/ | |
3058 | 978 301, |
979 /**/ | |
3056 | 980 300, |
981 /**/ | |
3054 | 982 299, |
983 /**/ | |
3052 | 984 298, |
985 /**/ | |
3050 | 986 297, |
987 /**/ | |
3048 | 988 296, |
989 /**/ | |
3046 | 990 295, |
991 /**/ | |
3044 | 992 294, |
993 /**/ | |
3042 | 994 293, |
995 /**/ | |
3040 | 996 292, |
997 /**/ | |
3038 | 998 291, |
999 /**/ | |
3036 | 1000 290, |
1001 /**/ | |
3034 | 1002 289, |
1003 /**/ | |
3032 | 1004 288, |
1005 /**/ | |
3030 | 1006 287, |
1007 /**/ | |
3028 | 1008 286, |
1009 /**/ | |
3026 | 1010 285, |
1011 /**/ | |
3024 | 1012 284, |
1013 /**/ | |
3022 | 1014 283, |
1015 /**/ | |
3020 | 1016 282, |
1017 /**/ | |
3018 | 1018 281, |
1019 /**/ | |
3016 | 1020 280, |
1021 /**/ | |
3014 | 1022 279, |
1023 /**/ | |
3012 | 1024 278, |
1025 /**/ | |
3010 | 1026 277, |
1027 /**/ | |
3008 | 1028 276, |
1029 /**/ | |
3006 | 1030 275, |
1031 /**/ | |
3004 | 1032 274, |
1033 /**/ | |
3002 | 1034 273, |
1035 /**/ | |
3000 | 1036 272, |
1037 /**/ | |
2998 | 1038 271, |
1039 /**/ | |
2996 | 1040 270, |
1041 /**/ | |
2994 | 1042 269, |
1043 /**/ | |
2992 | 1044 268, |
1045 /**/ | |
2990 | 1046 267, |
1047 /**/ | |
2988 | 1048 266, |
1049 /**/ | |
2986 | 1050 265, |
1051 /**/ | |
2984 | 1052 264, |
1053 /**/ | |
2982 | 1054 263, |
1055 /**/ | |
2980 | 1056 262, |
1057 /**/ | |
2978 | 1058 261, |
1059 /**/ | |
2976 | 1060 260, |
1061 /**/ | |
2974 | 1062 259, |
1063 /**/ | |
2972 | 1064 258, |
1065 /**/ | |
2970 | 1066 257, |
1067 /**/ | |
2968 | 1068 256, |
1069 /**/ | |
2966 | 1070 255, |
1071 /**/ | |
2963 | 1072 254, |
1073 /**/ | |
2961 | 1074 253, |
1075 /**/ | |
2959 | 1076 252, |
1077 /**/ | |
2957 | 1078 251, |
1079 /**/ | |
2955 | 1080 250, |
1081 /**/ | |
2953 | 1082 249, |
1083 /**/ | |
2951 | 1084 248, |
1085 /**/ | |
2949 | 1086 247, |
1087 /**/ | |
2947 | 1088 246, |
1089 /**/ | |
2945 | 1090 245, |
1091 /**/ | |
2943 | 1092 244, |
1093 /**/ | |
2941 | 1094 243, |
1095 /**/ | |
2939 | 1096 242, |
1097 /**/ | |
2937 | 1098 241, |
1099 /**/ | |
2935 | 1100 240, |
1101 /**/ | |
2933 | 1102 239, |
1103 /**/ | |
2931 | 1104 238, |
1105 /**/ | |
2929 | 1106 237, |
1107 /**/ | |
2927 | 1108 236, |
1109 /**/ | |
2925 | 1110 235, |
1111 /**/ | |
2923 | 1112 234, |
1113 /**/ | |
2921 | 1114 233, |
1115 /**/ | |
2919 | 1116 232, |
1117 /**/ | |
2917 | 1118 231, |
1119 /**/ | |
2915 | 1120 230, |
1121 /**/ | |
2913 | 1122 229, |
1123 /**/ | |
2911 | 1124 228, |
1125 /**/ | |
2909 | 1126 227, |
1127 /**/ | |
2906 | 1128 226, |
1129 /**/ | |
2904 | 1130 225, |
1131 /**/ | |
2902 | 1132 224, |
1133 /**/ | |
2900 | 1134 223, |
1135 /**/ | |
2898 | 1136 222, |
1137 /**/ | |
2896 | 1138 221, |
1139 /**/ | |
2894 | 1140 220, |
1141 /**/ | |
2891 | 1142 219, |
1143 /**/ | |
2889 | 1144 218, |
1145 /**/ | |
2887 | 1146 217, |
1147 /**/ | |
2885 | 1148 216, |
1149 /**/ | |
2883 | 1150 215, |
1151 /**/ | |
2881 | 1152 214, |
1153 /**/ | |
2879 | 1154 213, |
1155 /**/ | |
2877 | 1156 212, |
1157 /**/ | |
2875 | 1158 211, |
1159 /**/ | |
2873 | 1160 210, |
1161 /**/ | |
2871 | 1162 209, |
1163 /**/ | |
2869 | 1164 208, |
1165 /**/ | |
2867 | 1166 207, |
1167 /**/ | |
2865 | 1168 206, |
1169 /**/ | |
2863 | 1170 205, |
1171 /**/ | |
2861 | 1172 204, |
1173 /**/ | |
2859 | 1174 203, |
1175 /**/ | |
2857 | 1176 202, |
1177 /**/ | |
2855 | 1178 201, |
1179 /**/ | |
2853 | 1180 200, |
1181 /**/ | |
2851 | 1182 199, |
1183 /**/ | |
2849 | 1184 198, |
1185 /**/ | |
2847 | 1186 197, |
1187 /**/ | |
2845 | 1188 196, |
1189 /**/ | |
2843 | 1190 195, |
1191 /**/ | |
2841 | 1192 194, |
1193 /**/ | |
2839 | 1194 193, |
1195 /**/ | |
2837 | 1196 192, |
1197 /**/ | |
2834 | 1198 191, |
1199 /**/ | |
2831 | 1200 190, |
1201 /**/ | |
2829 | 1202 189, |
1203 /**/ | |
2827 | 1204 188, |
1205 /**/ | |
2823 | 1206 187, |
1207 /**/ | |
2821 | 1208 186, |
1209 /**/ | |
2819 | 1210 185, |
1211 /**/ | |
2817 | 1212 184, |
1213 /**/ | |
2815 | 1214 183, |
1215 /**/ | |
2813 | 1216 182, |
1217 /**/ | |
2811 | 1218 181, |
1219 /**/ | |
2809 | 1220 180, |
1221 /**/ | |
2807 | 1222 179, |
1223 /**/ | |
2805 | 1224 178, |
1225 /**/ | |
2803 | 1226 177, |
1227 /**/ | |
2801 | 1228 176, |
1229 /**/ | |
2799 | 1230 175, |
1231 /**/ | |
2797 | 1232 174, |
1233 /**/ | |
2795 | 1234 173, |
1235 /**/ | |
2793 | 1236 172, |
1237 /**/ | |
2791 | 1238 171, |
1239 /**/ | |
2789 | 1240 170, |
1241 /**/ | |
2786 | 1242 169, |
1243 /**/ | |
2784 | 1244 168, |
1245 /**/ | |
2782 | 1246 167, |
1247 /**/ | |
2780 | 1248 166, |
1249 /**/ | |
2778 | 1250 165, |
1251 /**/ | |
2776 | 1252 164, |
1253 /**/ | |
2774 | 1254 163, |
1255 /**/ | |
2772 | 1256 162, |
1257 /**/ | |
2770 | 1258 161, |
1259 /**/ | |
2768 | 1260 160, |
1261 /**/ | |
2766 | 1262 159, |
1263 /**/ | |
2764 | 1264 158, |
1265 /**/ | |
2762 | 1266 157, |
1267 /**/ | |
2760 | 1268 156, |
1269 /**/ | |
2758 | 1270 155, |
1271 /**/ | |
2756 | 1272 154, |
1273 /**/ | |
2754 | 1274 153, |
1275 /**/ | |
2752 | 1276 152, |
1277 /**/ | |
2749 | 1278 151, |
1279 /**/ | |
2747 | 1280 150, |
1281 /**/ | |
2745 | 1282 149, |
1283 /**/ | |
2743 | 1284 148, |
1285 /**/ | |
2741 | 1286 147, |
1287 /**/ | |
2739 | 1288 146, |
1289 /**/ | |
2737 | 1290 145, |
1291 /**/ | |
2735 | 1292 144, |
1293 /**/ | |
2730 | 1294 143, |
1295 /**/ | |
2727 | 1296 142, |
1297 /**/ | |
2726 | 1298 141, |
1299 /**/ | |
2724 | 1300 140, |
1301 /**/ | |
2723 | 1302 139, |
1303 /**/ | |
2722 | 1304 138, |
1305 /**/ | |
2721 | 1306 137, |
1307 /**/ | |
2720 | 1308 136, |
1309 /**/ | |
2719 | 1310 135, |
1311 /**/ | |
2718 | 1312 134, |
1313 /**/ | |
2717 | 1314 133, |
1315 /**/ | |
2716 | 1316 132, |
1317 /**/ | |
2715 | 1318 131, |
1319 /**/ | |
2714 | 1320 130, |
1321 /**/ | |
2713 | 1322 129, |
1323 /**/ | |
2712 | 1324 128, |
1325 /**/ | |
2711 | 1326 127, |
1327 /**/ | |
2710 | 1328 126, |
1329 /**/ | |
2708 | 1330 125, |
1331 /**/ | |
2707 | 1332 124, |
1333 /**/ | |
2706 | 1334 123, |
1335 /**/ | |
2705 | 1336 122, |
1337 /**/ | |
2704 | 1338 121, |
1339 /**/ | |
2703 | 1340 120, |
1341 /**/ | |
2702 | 1342 119, |
1343 /**/ | |
2701 | 1344 118, |
1345 /**/ | |
2700 | 1346 117, |
1347 /**/ | |
2699 | 1348 116, |
1349 /**/ | |
2697 | 1350 115, |
1351 /**/ | |
2696 | 1352 114, |
1353 /**/ | |
2695 | 1354 113, |
1355 /**/ | |
2694 | 1356 112, |
1357 /**/ | |
2693 | 1358 111, |
1359 /**/ | |
2692 | 1360 110, |
1361 /**/ | |
2691 | 1362 109, |
1363 /**/ | |
2690 | 1364 108, |
1365 /**/ | |
2689 | 1366 107, |
1367 /**/ | |
2688 | 1368 106, |
1369 /**/ | |
2687 | 1370 105, |
1371 /**/ | |
2686 | 1372 104, |
1373 /**/ | |
2685 | 1374 103, |
1375 /**/ | |
2684 | 1376 102, |
1377 /**/ | |
2683 | 1378 101, |
1379 /**/ | |
2682 | 1380 100, |
1381 /**/ | |
2680 | 1382 99, |
1383 /**/ | |
2679 | 1384 98, |
1385 /**/ | |
2678 | 1386 97, |
1387 /**/ | |
2677 | 1388 96, |
1389 /**/ | |
2676 | 1390 95, |
1391 /**/ | |
2675 | 1392 94, |
1393 /**/ | |
2674 | 1394 93, |
1395 /**/ | |
2673 | 1396 92, |
1397 /**/ | |
2672 | 1398 91, |
1399 /**/ | |
2671 | 1400 90, |
1401 /**/ | |
2670 | 1402 89, |
1403 /**/ | |
2669 | 1404 88, |
1405 /**/ | |
2668 | 1406 87, |
1407 /**/ | |
2667 | 1408 86, |
1409 /**/ | |
2666 | 1410 85, |
1411 /**/ | |
2665 | 1412 84, |
1413 /**/ | |
2664 | 1414 83, |
1415 /**/ | |
2663 | 1416 82, |
1417 /**/ | |
2661 | 1418 81, |
1419 /**/ | |
2660 | 1420 80, |
1421 /**/ | |
2659 | 1422 79, |
1423 /**/ | |
2658 | 1424 78, |
1425 /**/ | |
2657 | 1426 77, |
1427 /**/ | |
2656 | 1428 76, |
1429 /**/ | |
2655 | 1430 75, |
1431 /**/ | |
2654 | 1432 74, |
1433 /**/ | |
2653 | 1434 73, |
1435 /**/ | |
2652 | 1436 72, |
1437 /**/ | |
2651 | 1438 71, |
1439 /**/ | |
2650 | 1440 70, |
1441 /**/ | |
2649 | 1442 69, |
1443 /**/ | |
2648 | 1444 68, |
1445 /**/ | |
2647 | 1446 67, |
1447 /**/ | |
2646 | 1448 66, |
1449 /**/ | |
2645 | 1450 65, |
1451 /**/ | |
2644 | 1452 64, |
1453 /**/ | |
2643 | 1454 63, |
1455 /**/ | |
2641 | 1456 62, |
1457 /**/ | |
2640 | 1458 61, |
1459 /**/ | |
2639 | 1460 60, |
1461 /**/ | |
2638 | 1462 59, |
1463 /**/ | |
2637 | 1464 58, |
1465 /**/ | |
2636 | 1466 57, |
1467 /**/ | |
2635 | 1468 56, |
1469 /**/ | |
2634 | 1470 55, |
1471 /**/ | |
2633 | 1472 54, |
1473 /**/ | |
2632 | 1474 53, |
1475 /**/ | |
2631 | 1476 52, |
1477 /**/ | |
2630 | 1478 51, |
1479 /**/ | |
2629 | 1480 50, |
1481 /**/ | |
2628 | 1482 49, |
1483 /**/ | |
2627 | 1484 48, |
1485 /**/ | |
2626 | 1486 47, |
1487 /**/ | |
2624 | 1488 46, |
1489 /**/ | |
2623 | 1490 45, |
1491 /**/ | |
2622 | 1492 44, |
1493 /**/ | |
2621 | 1494 43, |
1495 /**/ | |
2620 | 1496 42, |
1497 /**/ | |
2619 | 1498 41, |
1499 /**/ | |
2618 | 1500 40, |
1501 /**/ | |
2617 | 1502 39, |
1503 /**/ | |
2616 | 1504 38, |
1505 /**/ | |
2615 | 1506 37, |
1507 /**/ | |
2614 | 1508 36, |
1509 /**/ | |
2613 | 1510 35, |
1511 /**/ | |
2612 | 1512 34, |
1513 /**/ | |
2611 | 1514 33, |
1515 /**/ | |
2610 | 1516 32, |
1517 /**/ | |
2609 | 1518 31, |
1519 /**/ | |
2607 | 1520 30, |
1521 /**/ | |
2606 | 1522 29, |
1523 /**/ | |
2605 | 1524 28, |
1525 /**/ | |
2604 | 1526 27, |
1527 /**/ | |
2603 | 1528 26, |
1529 /**/ | |
2602 | 1530 25, |
1531 /**/ | |
2601 | 1532 24, |
1533 /**/ | |
2600 | 1534 23, |
1535 /**/ | |
2599 | 1536 22, |
1537 /**/ | |
2598 | 1538 21, |
1539 /**/ | |
2597 | 1540 20, |
1541 /**/ | |
2595 | 1542 19, |
1543 /**/ | |
2594 | 1544 18, |
1545 /**/ | |
2593 | 1546 17, |
1547 /**/ | |
2592 | 1548 16, |
1549 /**/ | |
2591 | 1550 15, |
1551 /**/ | |
2590 | 1552 14, |
1553 /**/ | |
2589 | 1554 13, |
1555 /**/ | |
2588 | 1556 12, |
1557 /**/ | |
2586 | 1558 11, |
1559 /**/ | |
2585 | 1560 10, |
1561 /**/ | |
2584 | 1562 9, |
1563 /**/ | |
2583 | 1564 8, |
1565 /**/ | |
2582 | 1566 7, |
1567 /**/ | |
2580 | 1568 6, |
1569 /**/ | |
2579 | 1570 5, |
1571 /**/ | |
2578 | 1572 4, |
1573 /**/ | |
2165
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1574 3, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1575 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1576 2, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1577 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1578 1, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1579 /**/ |
7 | 1580 0 |
1581 }; | |
1582 | |
1760 | 1583 /* |
1584 * Place to put a short description when adding a feature with a patch. | |
1585 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
1586 * Also add a comment marker to separate the lines. | |
1587 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 1588 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 1589 */ |
1590 static char *(extra_patches[]) = | |
1591 { /* Add your patch description below this line */ | |
1592 /**/ | |
1593 NULL | |
1594 }; | |
1595 | |
7 | 1596 int |
1597 highest_patch() | |
1598 { | |
1599 int i; | |
1600 int h = 0; | |
1601 | |
1602 for (i = 0; included_patches[i] != 0; ++i) | |
1603 if (included_patches[i] > h) | |
1604 h = included_patches[i]; | |
1605 return h; | |
1606 } | |
1607 | |
1608 #if defined(FEAT_EVAL) || defined(PROTO) | |
1609 /* | |
1610 * Return TRUE if patch "n" has been included. | |
1611 */ | |
1612 int | |
1613 has_patch(n) | |
1614 int n; | |
1615 { | |
1616 int i; | |
1617 | |
1618 for (i = 0; included_patches[i] != 0; ++i) | |
1619 if (included_patches[i] == n) | |
1620 return TRUE; | |
1621 return FALSE; | |
1622 } | |
1623 #endif | |
1624 | |
1625 void | |
1626 ex_version(eap) | |
1627 exarg_T *eap; | |
1628 { | |
1629 /* | |
1630 * Ignore a ":version 9.99" command. | |
1631 */ | |
1632 if (*eap->arg == NUL) | |
1633 { | |
1634 msg_putchar('\n'); | |
1635 list_version(); | |
1636 } | |
1637 } | |
1638 | |
1639 void | |
1640 list_version() | |
1641 { | |
1642 int i; | |
1643 int first; | |
1644 char *s = ""; | |
1645 | |
1646 /* | |
1647 * When adding features here, don't forget to update the list of | |
1648 * internal variables in eval.c! | |
1649 */ | |
1650 MSG(longVersion); | |
1651 #ifdef WIN3264 | |
1652 # ifdef FEAT_GUI_W32 | |
1653 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
1654 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 1655 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 1656 # else |
990 | 1657 # ifdef _WIN64 |
1607 | 1658 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 1659 # else |
1607 | 1660 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 1661 # endif |
7 | 1662 # endif |
1663 if (gui_is_win32s()) | |
1664 MSG_PUTS(_(" in Win32s mode")); | |
1665 # ifdef FEAT_OLE | |
1666 MSG_PUTS(_(" with OLE support")); | |
1667 # endif | |
1668 # else | |
1607 | 1669 # ifdef _WIN64 |
1670 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1671 # else | |
1672 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1673 # endif | |
7 | 1674 # endif |
1675 #endif | |
1676 #ifdef WIN16 | |
1607 | 1677 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 1678 #endif |
1679 #ifdef MSDOS | |
1680 # ifdef DJGPP | |
1607 | 1681 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 1682 # else |
1607 | 1683 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 1684 # endif |
1685 #endif | |
1686 #ifdef MACOS | |
1687 # ifdef MACOS_X | |
1688 # ifdef MACOS_X_UNIX | |
1689 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1690 # else | |
1691 MSG_PUTS(_("\nMacOS X version")); | |
1692 # endif | |
1693 #else | |
1694 MSG_PUTS(_("\nMacOS version")); | |
1695 # endif | |
1696 #endif | |
1697 | |
1698 #ifdef VMS | |
1705 | 1699 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1700 # ifdef HAVE_PATHDEF |
1701 if (*compiled_arch != NUL) | |
1702 { | |
1703 MSG_PUTS(" - "); | |
1704 MSG_PUTS(compiled_arch); | |
1705 } | |
1706 # endif | |
1707 | |
7 | 1708 #endif |
1709 | |
1710 /* Print the list of patch numbers if there is at least one. */ | |
1711 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1712 if (included_patches[0] != 0) | |
1713 { | |
1714 MSG_PUTS(_("\nIncluded patches: ")); | |
1715 first = -1; | |
1716 /* find last one */ | |
1717 for (i = 0; included_patches[i] != 0; ++i) | |
1718 ; | |
1719 while (--i >= 0) | |
1720 { | |
1721 if (first < 0) | |
1722 first = included_patches[i]; | |
1723 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1724 { | |
1725 MSG_PUTS(s); | |
1726 s = ", "; | |
1727 msg_outnum((long)first); | |
1728 if (first != included_patches[i]) | |
1729 { | |
1730 MSG_PUTS("-"); | |
1731 msg_outnum((long)included_patches[i]); | |
1732 } | |
1733 first = -1; | |
1734 } | |
1735 } | |
1736 } | |
1737 | |
1760 | 1738 /* Print the list of extra patch descriptions if there is at least one. */ |
1739 if (extra_patches[0] != NULL) | |
1740 { | |
1741 MSG_PUTS(_("\nExtra patches: ")); | |
1742 s = ""; | |
1743 for (i = 0; extra_patches[i] != NULL; ++i) | |
1744 { | |
1745 MSG_PUTS(s); | |
1746 s = ", "; | |
1747 MSG_PUTS(extra_patches[i]); | |
1748 } | |
1749 } | |
1750 | |
7 | 1751 #ifdef MODIFIED_BY |
1752 MSG_PUTS("\n"); | |
1753 MSG_PUTS(_("Modified by ")); | |
1754 MSG_PUTS(MODIFIED_BY); | |
1755 #endif | |
1756 | |
1757 #ifdef HAVE_PATHDEF | |
1758 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1759 { | |
1760 MSG_PUTS(_("\nCompiled ")); | |
1761 if (*compiled_user != NUL) | |
1762 { | |
1763 MSG_PUTS(_("by ")); | |
1764 MSG_PUTS(compiled_user); | |
1765 } | |
1766 if (*compiled_sys != NUL) | |
1767 { | |
1768 MSG_PUTS("@"); | |
1769 MSG_PUTS(compiled_sys); | |
1770 } | |
1771 } | |
1772 #endif | |
1773 | |
1774 #ifdef FEAT_HUGE | |
1775 MSG_PUTS(_("\nHuge version ")); | |
1776 #else | |
1777 # ifdef FEAT_BIG | |
1778 MSG_PUTS(_("\nBig version ")); | |
1779 # else | |
1780 # ifdef FEAT_NORMAL | |
1781 MSG_PUTS(_("\nNormal version ")); | |
1782 # else | |
1783 # ifdef FEAT_SMALL | |
1784 MSG_PUTS(_("\nSmall version ")); | |
1785 # else | |
1786 MSG_PUTS(_("\nTiny version ")); | |
1787 # endif | |
1788 # endif | |
1789 # endif | |
1790 #endif | |
1791 #ifndef FEAT_GUI | |
1792 MSG_PUTS(_("without GUI.")); | |
1793 #else | |
1794 # ifdef FEAT_GUI_GTK | |
1795 # ifdef FEAT_GUI_GNOME | |
1796 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
1797 # else | |
1798 MSG_PUTS(_("with GTK2 GUI.")); | |
1799 # endif | |
1800 # else | |
1801 # ifdef FEAT_GUI_MOTIF | |
1802 MSG_PUTS(_("with X11-Motif GUI.")); | |
1803 # else | |
1804 # ifdef FEAT_GUI_ATHENA | |
1805 # ifdef FEAT_GUI_NEXTAW | |
1806 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
1807 # else | |
1808 MSG_PUTS(_("with X11-Athena GUI.")); | |
1809 # endif | |
1810 # else | |
1811 # ifdef FEAT_GUI_PHOTON | |
1812 MSG_PUTS(_("with Photon GUI.")); | |
1813 # else | |
1814 # if defined(MSWIN) | |
1815 MSG_PUTS(_("with GUI.")); | |
1816 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1817 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 1818 MSG_PUTS(_("with Carbon GUI.")); |
1819 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1820 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 1821 MSG_PUTS(_("with Cocoa GUI.")); |
1822 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1823 # if defined(MACOS) |
7 | 1824 MSG_PUTS(_("with (classic) GUI.")); |
1825 # endif | |
1826 # endif | |
1827 # endif | |
1828 # endif | |
1829 # endif | |
1830 # endif | |
1831 # endif | |
1832 # endif | |
1833 #endif | |
1834 version_msg(_(" Features included (+) or not (-):\n")); | |
1835 | |
1836 /* print all the features */ | |
1837 for (i = 0; features[i] != NULL; ++i) | |
1838 { | |
1839 version_msg(features[i]); | |
1840 if (msg_col > 0) | |
1841 version_msg(" "); | |
1842 } | |
1843 | |
1844 version_msg("\n"); | |
1845 #ifdef SYS_VIMRC_FILE | |
1846 version_msg(_(" system vimrc file: \"")); | |
1847 version_msg(SYS_VIMRC_FILE); | |
1848 version_msg("\"\n"); | |
1849 #endif | |
1850 #ifdef USR_VIMRC_FILE | |
1851 version_msg(_(" user vimrc file: \"")); | |
1852 version_msg(USR_VIMRC_FILE); | |
1853 version_msg("\"\n"); | |
1854 #endif | |
1855 #ifdef USR_VIMRC_FILE2 | |
1856 version_msg(_(" 2nd user vimrc file: \"")); | |
1857 version_msg(USR_VIMRC_FILE2); | |
1858 version_msg("\"\n"); | |
1859 #endif | |
1860 #ifdef USR_VIMRC_FILE3 | |
1861 version_msg(_(" 3rd user vimrc file: \"")); | |
1862 version_msg(USR_VIMRC_FILE3); | |
1863 version_msg("\"\n"); | |
1864 #endif | |
1865 #ifdef USR_EXRC_FILE | |
1866 version_msg(_(" user exrc file: \"")); | |
1867 version_msg(USR_EXRC_FILE); | |
1868 version_msg("\"\n"); | |
1869 #endif | |
1870 #ifdef USR_EXRC_FILE2 | |
1871 version_msg(_(" 2nd user exrc file: \"")); | |
1872 version_msg(USR_EXRC_FILE2); | |
1873 version_msg("\"\n"); | |
1874 #endif | |
1875 #ifdef FEAT_GUI | |
1876 # ifdef SYS_GVIMRC_FILE | |
1877 version_msg(_(" system gvimrc file: \"")); | |
1878 version_msg(SYS_GVIMRC_FILE); | |
1879 version_msg("\"\n"); | |
1880 # endif | |
1881 version_msg(_(" user gvimrc file: \"")); | |
1882 version_msg(USR_GVIMRC_FILE); | |
1883 version_msg("\"\n"); | |
1884 # ifdef USR_GVIMRC_FILE2 | |
1885 version_msg(_("2nd user gvimrc file: \"")); | |
1886 version_msg(USR_GVIMRC_FILE2); | |
1887 version_msg("\"\n"); | |
1888 # endif | |
1889 # ifdef USR_GVIMRC_FILE3 | |
1890 version_msg(_("3rd user gvimrc file: \"")); | |
1891 version_msg(USR_GVIMRC_FILE3); | |
1892 version_msg("\"\n"); | |
1893 # endif | |
1894 #endif | |
1895 #ifdef FEAT_GUI | |
1896 # ifdef SYS_MENU_FILE | |
1897 version_msg(_(" system menu file: \"")); | |
1898 version_msg(SYS_MENU_FILE); | |
1899 version_msg("\"\n"); | |
1900 # endif | |
1901 #endif | |
1902 #ifdef HAVE_PATHDEF | |
1903 if (*default_vim_dir != NUL) | |
1904 { | |
1905 version_msg(_(" fall-back for $VIM: \"")); | |
1906 version_msg((char *)default_vim_dir); | |
1907 version_msg("\"\n"); | |
1908 } | |
1909 if (*default_vimruntime_dir != NUL) | |
1910 { | |
1911 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
1912 version_msg((char *)default_vimruntime_dir); | |
1913 version_msg("\"\n"); | |
1914 } | |
1915 version_msg(_("Compilation: ")); | |
1916 version_msg((char *)all_cflags); | |
1917 version_msg("\n"); | |
1918 #ifdef VMS | |
1919 if (*compiler_version != NUL) | |
1920 { | |
1921 version_msg(_("Compiler: ")); | |
1922 version_msg((char *)compiler_version); | |
1923 version_msg("\n"); | |
1924 } | |
1925 #endif | |
1926 version_msg(_("Linking: ")); | |
1927 version_msg((char *)all_lflags); | |
1928 #endif | |
1929 #ifdef DEBUG | |
1930 version_msg("\n"); | |
1931 version_msg(_(" DEBUG BUILD")); | |
1932 #endif | |
1933 } | |
1934 | |
1935 /* | |
1936 * Output a string for the version message. If it's going to wrap, output a | |
1937 * newline, unless the message is too long to fit on the screen anyway. | |
1938 */ | |
1939 static void | |
1940 version_msg(s) | |
1941 char *s; | |
1942 { | |
1943 int len = (int)STRLEN(s); | |
1944 | |
1945 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
1946 && *s != '\n') | |
1947 msg_putchar('\n'); | |
1948 if (!got_int) | |
1949 MSG_PUTS(s); | |
1950 } | |
1951 | |
1952 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
1953 | |
1954 /* | |
1955 * Give an introductory message about Vim. | |
1956 * Only used when starting Vim on an empty file, without a file name. | |
1957 * Or with the ":intro" command (for Sven :-). | |
1958 */ | |
1959 void | |
1960 intro_message(colon) | |
1961 int colon; /* TRUE for ":intro" */ | |
1962 { | |
1963 int i; | |
1964 int row; | |
1965 int blanklines; | |
1966 int sponsor; | |
1967 char *p; | |
1968 static char *(lines[]) = | |
1969 { | |
1970 N_("VIM - Vi IMproved"), | |
1971 "", | |
1972 N_("version "), | |
1973 N_("by Bram Moolenaar et al."), | |
1974 #ifdef MODIFIED_BY | |
1975 " ", | |
1976 #endif | |
1977 N_("Vim is open source and freely distributable"), | |
1978 "", | |
1979 N_("Help poor children in Uganda!"), | |
1980 N_("type :help iccf<Enter> for information "), | |
1981 "", | |
1982 N_("type :q<Enter> to exit "), | |
1983 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 1984 N_("type :help version7<Enter> for version info"), |
7 | 1985 NULL, |
1986 "", | |
1987 N_("Running in Vi compatible mode"), | |
1988 N_("type :set nocp<Enter> for Vim defaults"), | |
1989 N_("type :help cp-default<Enter> for info on this"), | |
1990 }; | |
1991 #ifdef FEAT_GUI | |
1992 static char *(gui_lines[]) = | |
1993 { | |
1994 NULL, | |
1995 NULL, | |
1996 NULL, | |
1997 NULL, | |
1998 #ifdef MODIFIED_BY | |
1999 NULL, | |
2000 #endif | |
2001 NULL, | |
2002 NULL, | |
2003 NULL, | |
2004 N_("menu Help->Orphans for information "), | |
2005 NULL, | |
2006 N_("Running modeless, typed text is inserted"), | |
2007 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2008 N_(" for two modes "), | |
2009 NULL, | |
2010 NULL, | |
2011 NULL, | |
2012 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2013 N_(" for Vim defaults "), | |
2014 }; | |
2015 #endif | |
2016 | |
2017 /* blanklines = screen height - # message lines */ | |
2018 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2019 if (!p_cp) | |
2020 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2021 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2022 if (mch_windows95()) | |
2023 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2024 #endif | |
2025 | |
2026 #ifdef FEAT_WINDOWS | |
2027 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2028 if (p_ls > 1) | |
2029 blanklines -= Rows - topframe->fr_height; | |
2030 #endif | |
2031 if (blanklines < 0) | |
2032 blanklines = 0; | |
2033 | |
2034 /* Show the sponsor and register message one out of four times, the Uganda | |
2035 * message two out of four times. */ | |
615 | 2036 sponsor = (int)time(NULL); |
7 | 2037 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2038 | |
2039 /* start displaying the message lines after half of the blank lines */ | |
2040 row = blanklines / 2; | |
2041 if ((row >= 2 && Columns >= 50) || colon) | |
2042 { | |
2043 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2044 { | |
2045 p = lines[i]; | |
2046 #ifdef FEAT_GUI | |
2047 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2048 p = gui_lines[i]; | |
2049 #endif | |
2050 if (p == NULL) | |
2051 { | |
2052 if (!p_cp) | |
2053 break; | |
2054 continue; | |
2055 } | |
2056 if (sponsor != 0) | |
2057 { | |
2058 if (strstr(p, "children") != NULL) | |
2059 p = sponsor < 0 | |
2060 ? N_("Sponsor Vim development!") | |
2061 : N_("Become a registered Vim user!"); | |
2062 else if (strstr(p, "iccf") != NULL) | |
2063 p = sponsor < 0 | |
2064 ? N_("type :help sponsor<Enter> for information ") | |
2065 : N_("type :help register<Enter> for information "); | |
2066 else if (strstr(p, "Orphans") != NULL) | |
2067 p = N_("menu Help->Sponsor/Register for information "); | |
2068 } | |
2069 if (*p != NUL) | |
2070 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2071 ++row; | |
2072 } | |
2073 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2074 if (mch_windows95()) | |
2075 { | |
2076 do_intro_line(++row, | |
2077 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2078 FALSE, hl_attr(HLF_E)); | |
2079 do_intro_line(++row, | |
2080 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2081 FALSE, 0); | |
2082 } | |
2083 #endif | |
2084 } | |
2085 | |
2086 /* Make the wait-return message appear just below the text. */ | |
2087 if (colon) | |
2088 msg_row = row; | |
2089 } | |
2090 | |
2091 static void | |
2092 do_intro_line(row, mesg, add_version, attr) | |
2093 int row; | |
2094 char_u *mesg; | |
2095 int add_version; | |
2096 int attr; | |
2097 { | |
2098 char_u vers[20]; | |
2099 int col; | |
2100 char_u *p; | |
2101 int l; | |
2102 int clen; | |
2103 #ifdef MODIFIED_BY | |
2104 # define MODBY_LEN 150 | |
2105 char_u modby[MODBY_LEN]; | |
2106 | |
2107 if (*mesg == ' ') | |
2108 { | |
1491 | 2109 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2110 l = STRLEN(modby); |
1491 | 2111 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2112 mesg = modby; |
2113 } | |
2114 #endif | |
2115 | |
2116 /* Center the message horizontally. */ | |
2117 col = vim_strsize(mesg); | |
2118 if (add_version) | |
2119 { | |
2120 STRCPY(vers, mediumVersion); | |
2121 if (highest_patch()) | |
2122 { | |
2123 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2124 if (isalpha((int)vers[3])) |
7 | 2125 { |
2619 | 2126 if (isalpha((int)vers[4])) |
7 | 2127 sprintf((char *)vers + 5, ".%d%s", highest_patch(), |
2128 mediumVersion + 5); | |
2129 else | |
2130 sprintf((char *)vers + 4, ".%d%s", highest_patch(), | |
2131 mediumVersion + 4); | |
2132 } | |
2133 else | |
2134 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2135 } | |
2136 col += (int)STRLEN(vers); | |
2137 } | |
2138 col = (Columns - col) / 2; | |
2139 if (col < 0) | |
2140 col = 0; | |
2141 | |
2142 /* Split up in parts to highlight <> items differently. */ | |
2143 for (p = mesg; *p != NUL; p += l) | |
2144 { | |
2145 clen = 0; | |
2146 for (l = 0; p[l] != NUL | |
2147 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2148 { | |
2149 #ifdef FEAT_MBYTE | |
2150 if (has_mbyte) | |
2151 { | |
2152 clen += ptr2cells(p + l); | |
474 | 2153 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2154 } |
2155 else | |
2156 #endif | |
2157 clen += byte2cells(p[l]); | |
2158 } | |
2159 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2160 col += clen; | |
2161 } | |
2162 | |
2163 /* Add the version number to the version line. */ | |
2164 if (add_version) | |
2165 screen_puts(vers, row, col, 0); | |
2166 } | |
2167 | |
2168 /* | |
2169 * ":intro": clear screen, display intro screen and wait for return. | |
2170 */ | |
2171 void | |
2172 ex_intro(eap) | |
1876 | 2173 exarg_T *eap UNUSED; |
7 | 2174 { |
2175 screenclear(); | |
2176 intro_message(TRUE); | |
2177 wait_return(TRUE); | |
2178 } |