Mercurial > vim
comparison src/dosinst.c @ 2165:733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 15 May 2010 21:13:04 +0200 |
parents | 32f25c7ae94b |
children | 073ff46fe397 |
comparison
equal
deleted
inserted
replaced
2163:00d8ddf20102 | 2165:733f0dc510c3 |
---|---|
61 }; | 61 }; |
62 char *(compat_choices[]) = | 62 char *(compat_choices[]) = |
63 { | 63 { |
64 "\nChoose the default way to run Vim:", | 64 "\nChoose the default way to run Vim:", |
65 "Vi compatible", | 65 "Vi compatible", |
66 "with some Vim enhancements", | 66 "with some Vim ehancements", |
67 "with syntax highlighting and other features switched on", | 67 "with syntax highlighting and other features switched on", |
68 }; | 68 }; |
69 int compat_choice = (int)compat_all_enhancements; | 69 int compat_choice = (int)compat_all_enhancements; |
70 char *compat_text = "- run Vim %s"; | 70 char *compat_text = "- run Vim %s"; |
71 | 71 |
552 strcpy(buf, temp_string_buffer); | 552 strcpy(buf, temp_string_buffer); |
553 sprintf(temp_string_buffer, "\"%s\"", buf); | 553 sprintf(temp_string_buffer, "\"%s\"", buf); |
554 } | 554 } |
555 run_command(temp_string_buffer); | 555 run_command(temp_string_buffer); |
556 | 556 |
557 /* Check if an uninstall reg key was deleted. | 557 /* Check if an unistall reg key was deleted. |
558 * if it was, we want to decrement key_index. | 558 * if it was, we want to decrement key_index. |
559 * if we don't do this, we will skip the key | 559 * if we don't do this, we will skip the key |
560 * immediately after any key that we delete. */ | 560 * immediately after any key that we delete. */ |
561 RegQueryInfoKey(key_handle, NULL, NULL, NULL, | 561 RegQueryInfoKey(key_handle, NULL, NULL, NULL, |
562 &new_num_keys, NULL, NULL, NULL, | 562 &new_num_keys, NULL, NULL, NULL, |
1129 } | 1129 } |
1130 | 1130 |
1131 /* | 1131 /* |
1132 * Install the vimrc file. | 1132 * Install the vimrc file. |
1133 */ | 1133 */ |
1134 /*ARGSUSED*/ | |
1134 static void | 1135 static void |
1135 install_vimrc(int idx) | 1136 install_vimrc(int idx) |
1136 { | 1137 { |
1137 FILE *fd, *tfd; | 1138 FILE *fd, *tfd; |
1138 char *fname; | 1139 char *fname; |