1
1

* edit.c: Fixed some whitespacing issues.

Этот коммит содержится в:
Roland Illig 2005-02-07 20:28:13 +00:00
родитель 2a281ad18d
Коммит 15342acba1

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

@ -57,7 +57,7 @@ int option_edit_bottom_extreme = 0;
const char *option_whole_chars_search = "0123456789abcdefghijklmnopqrstuvwxyz_"; const char *option_whole_chars_search = "0123456789abcdefghijklmnopqrstuvwxyz_";
char *option_backup_ext = "~"; char *option_backup_ext = "~";
/* /*-
* *
* here's a quick sketch of the layout: (don't run this through indent.) * here's a quick sketch of the layout: (don't run this through indent.)
* *
@ -83,8 +83,6 @@ char *option_backup_ext = "~";
* _ * _
* This_is_some_file * This_is_some_file
* fin. * fin.
*
*
*/ */
@ -137,7 +135,6 @@ edit_load_file_fast (WEdit *edit, const char *filename)
buf2 = edit->curs2 >> S_EDIT_BUF_SIZE; buf2 = edit->curs2 >> S_EDIT_BUF_SIZE;
if ((file = mc_open (filename, O_RDONLY | O_BINARY)) == -1) { if ((file = mc_open (filename, O_RDONLY | O_BINARY)) == -1) {
/* The file-name is printed after the ':' */
GString *errmsg = g_string_new(NULL); GString *errmsg = g_string_new(NULL);
g_string_sprintf(errmsg, _(" Cannot open %s for reading "), filename); g_string_sprintf(errmsg, _(" Cannot open %s for reading "), filename);
edit_error_dialog (_("Error"), get_sys_error (errmsg->str)); edit_error_dialog (_("Error"), get_sys_error (errmsg->str));
@ -171,16 +168,9 @@ edit_load_file_fast (WEdit *edit, const char *filename)
static const struct edit_filters { static const struct edit_filters {
const char *read, *write, *extension; const char *read, *write, *extension;
} all_filters[] = { } all_filters[] = {
{ "bzip2 -cd %s 2>&1", "bzip2 > %s", ".bz2" },
{ { "gzip -cd %s 2>&1", "gzip > %s", ".gz" },
"bzip2 -cd %s 2>&1", "bzip2 > %s", ".bz2" { "gzip -cd %s 2>&1", "gzip > %s", ".Z" }
},
{
"gzip -cd %s 2>&1", "gzip > %s", ".gz"
},
{
"gzip -cd %s 2>&1", "gzip > %s", ".Z"
}
}; };
/* Return index of the filter or -1 is there is no appropriate filter */ /* Return index of the filter or -1 is there is no appropriate filter */