map_set_editor(): * Set the editor */
| 1079 | * Set the editor |
| 1080 | */ |
| 1081 | protected int |
| 1082 | map_set_editor(EditLine *el, Char *editor) |
| 1083 | { |
| 1084 | |
| 1085 | if (Strcmp(editor, STR("emacs")) == 0) { |
| 1086 | map_init_emacs(el); |
| 1087 | return 0; |
| 1088 | } |
| 1089 | if (Strcmp(editor, STR("vi")) == 0) { |
| 1090 | map_init_vi(el); |
| 1091 | return 0; |
| 1092 | } |
| 1093 | return -1; |
| 1094 | } |
| 1095 | |
| 1096 | |
| 1097 | /* map_get_editor(): |
no test coverage detected