1
1

2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>

* editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
	translate keywords written to macro file or macro don't work, at least
	for Cyrillic. Made this as separate commit, so, if it seriously breaks
	compatibility it's easy to revert it.
Этот коммит содержится в:
Andrew V. Samoilov 2000-09-15 10:43:22 +00:00
родитель bd90155537
Коммит 503485b453
2 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,10 @@
2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
translate keywords written to macro file or macro don't work, at least
for Cyrillic. Made this as separate commit, so, if it seriously breaks
compatibility it's easy to revert it.
2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced

Просмотреть файл

@ -694,7 +694,7 @@ int edit_delete_macro (WEdit * edit, int k)
return 1;
}
for (;;) {
n = fscanf (f, _("key '%d 0': "), &s);
n = fscanf (f, ("key '%d 0': "), &s);
if (!n || n == EOF)
break;
n = 0;
@ -702,7 +702,7 @@ int edit_delete_macro (WEdit * edit, int k)
n++;
fscanf (f, ";\n");
if (s != k) {
fprintf (g, _("key '%d 0': "), s);
fprintf (g, ("key '%d 0': "), s);
for (i = 0; i < n; i++)
fprintf (g, "%hd %hd, ", macro[i].command, macro[i].ch);
fprintf (g, ";\n");
@ -738,7 +738,7 @@ int edit_save_macro_cmd (WEdit * edit, struct macro macro[], int n)
return 0;
f = edit_open_macro_file ("a+");
if (f) {
fprintf (f, _("key '%d 0': "), s);
fprintf (f, ("key '%d 0': "), s);
for (i = 0; i < n; i++)
fprintf (f, "%hd %hd, ", macro[i].command, macro[i].ch);
fprintf (f, ";\n");
@ -793,7 +793,7 @@ int edit_load_macro_cmd (WEdit * edit, struct macro macro[], int *n, int k)
struct macro dummy;
do {
int u;
u = fscanf (f, _("key '%d 0': "), &s);
u = fscanf (f, ("key '%d 0': "), &s);
if (!u || u == EOF)
break;
if (!saved_macros_loaded)