Commit Graph

7014 Commits

Author SHA1 Message Date
Roland Illig
c3f40d150f * textconf.c: mc --version prints the number of bits of off_t. 2005-07-03 11:37:28 +00:00
Roland Illig
1ee7a7c31f * view.c (view_fix_cursor_position): Fixed a division-by-zero
bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
	Pavel also tracked down the bug.
2005-07-01 20:48:29 +00:00
Roland Illig
1440266805 Fixed a typo: DS_VFS_FILE => DS_FILE. 2005-06-30 23:16:14 +00:00
Roland Illig
6e5508ef14 * global.h: Don't use MC_ENABLE_DEBUGGING_CODE to decide whether
to enable or disable assertions. Just use the default value.
2005-06-30 23:12:08 +00:00
Roland Illig
7f25b3154b Added some more assertions to check whether bytes_per_line is really != 0. 2005-06-30 22:58:52 +00:00
Roland Illig
1918157719 * view.c (view_growbuf_load_until): Check the datasource in the
right place. (get_byte_growing_buffer): Removed an unnecessary
	assertion. (view_file_load_data): Make sure the right datasource
	is selected. (view_set_byte): This function is only expected to
	be called when datasource == DS_FILE. Removed unused code.
2005-06-30 22:50:30 +00:00
Roland Illig
b27499f6da * ext.c (get_file_type_local): Redirect error messages from
file(1) to /dev/null.
2005-06-28 13:55:33 +00:00
Roland Illig
dfbc2522aa * view.c (display): Splitted up into view_display_hex() and
view_display_text().
2005-06-28 13:21:42 +00:00
Roland Illig
868c55faa6 * view.c (display): Changed return type to void. 2005-06-28 13:02:09 +00:00
Roland Illig
a095bce5ee (do_regexp_search): Removed unnecessary type cast.
(do_normal_search): Likewise.
2005-06-28 12:28:35 +00:00
Roland Illig
6fdbaf90a0 * view.c (normal_search): Replaced with normal_search_cmd(). 2005-06-28 12:25:34 +00:00
Roland Illig
bb8946d3e2 Removed misleading comment for view_load_command_output(). 2005-06-28 12:16:17 +00:00
Roland Illig
9c27d4c71f Removed unused variable. 2005-06-28 12:15:05 +00:00
Roland Illig
48b81cf616 * view.c: Simplified error handling when loading files. 2005-06-28 12:13:37 +00:00
Roland Illig
e030df6a27 The pkgsrc-wip version of mc does not exist anymore. 2005-06-28 10:59:25 +00:00
Roland Illig
cf9ca5b46b * view.c: Eliminated the need for function pointer casts. 2005-06-27 23:19:32 +00:00
Roland Illig
00261c30de * view.c: Renamed view_quit to want_to_quit and changed its type
to gboolean.
2005-06-27 22:38:03 +00:00
Roland Illig
fe50acadd4 Some more inline functions ... 2005-06-27 22:36:00 +00:00
Roland Illig
bb142400e1 * view.c: Massive speed-ups by reordering statements and declaring
functions as inline.
2005-06-27 22:11:55 +00:00
Roland Illig
d991a41c9f (coord_cache_entry_less): Another speed-up by declaring the
function as inline.
2005-06-27 21:37:51 +00:00
Roland Illig
1300633147 * view.c (is_nroff_sequence): Reordered the statements to gain
a speed-off of 30 percent on a 10 MB file.
2005-06-27 21:34:36 +00:00
Leonard den Ottolander
f10fe35005 * main.[ch], user.c: Fixed a double free in mc_maybe_editor_or_viewer().
Restructured setup_dummy_mc() and expand_format() accordingly.
2005-06-22 21:38:52 +00:00
Pavel Roskin
a52ce4e9ac * lib/mc.ext.in: Support opening for 7-Zip archives. 2005-06-22 02:23:50 +00:00
Pavel Roskin
33ded3d61b * extfs/u7z: New file - support for 7zip archives.
* extfs/Makefile.am: Add u7z.
* extfs/extfs.ini: Likewise.
2005-06-22 02:21:43 +00:00
Pavel Roskin
d093a4024c * view.c (view_percent): Remove unused variable. 2005-06-21 19:44:28 +00:00
Pavel Roskin
b2084010e4 Wrong date in last commit 2005-06-21 19:42:46 +00:00
Pavel Roskin
878175bec9 * ftpfs.c (ftpfs_get_current_directory): Warning fix - "missing
sentinel in function call".
2005-06-21 19:40:36 +00:00
Roland Illig
62d358bdc1 Took my "opinion" out of the ChangeLog message from Jun 14. 2005-06-16 21:19:37 +00:00
Roland Illig
a5f6af1b98 * octave.syntax: Support for Matlab multi line comments
(starting with '%{' and ending with '%}')
2005-06-16 08:48:20 +00:00
Roland Illig
9711666a53 * view.c (view_get_filesize_with_exact): Removed. I didn't like
the name. Replaced with a new function view_may_still_grow().
2005-06-14 14:13:11 +00:00
Roland Illig
c534a510c7 * view.c: Fixed an integer wraparound bug. 2005-06-14 13:34:41 +00:00
Roland Illig
0979ed9626 Changed the name of the multiple-inclusion guard. 2005-06-14 13:14:49 +00:00
Roland Illig
3bac3bdf53 Removed misleading comment. 2005-06-14 13:07:12 +00:00
Roland Illig
6bf747eccf * widget.h (struct WButtonBar): Moved into widget.c.
* widget.c (struct WButtonBar): Moved from widget.h.
	* boxes.c: Don't dereference WButtonBar.
	* help.c: Likewise.
	* layout.c: Likewise.
	* view.c: Likewise.
2005-06-14 13:02:30 +00:00
Roland Illig
0ee0936513 * editwidget.c: Don't dereference WButtonBar. 2005-06-14 13:00:09 +00:00
Roland Illig
468ab7a3cd * widget.c: Added code to handle multiple types of functions for
commands.
	* widget.h: Likewise.
2005-06-14 12:11:38 +00:00
Roland Illig
27ef4ba453 * help.c: Use buttonbar_clear_label().
* tree.c: Likewise.
2005-06-14 11:34:28 +00:00
Roland Illig
160686b6a8 void
buttonbar_clear_label (Dlg_head *h, int idx)
{
    WButtonBar *bb = find_buttonbar (h);

    if (!bb)
	return;

    set_label_text (bb, idx, "");
    bb->labels[idx - 1].tag = BBFUNC_NONE;
}
2005-06-14 11:30:26 +00:00
Roland Illig
9d8e5504e2 * achown.c (advanced_chown_callback): Swapped the arguments of a
recursive function call -- the types didn't match.
2005-06-14 10:26:06 +00:00
Roland Illig
5e120f7f17 * mcfs.c (mcfs_get_remote_port): Shift an #endif two lines down
to avoid a warning from SunPro.
2005-06-08 00:34:54 +00:00
Roland Illig
5343037e83 * fish.c (fish_ctl): Commented out some unused code with
#if 0 ... #endif. This fixes a warning from SunPro.
2005-06-08 00:31:25 +00:00
Roland Illig
c4c1c12432 * util.h (free_after): Moved to vfs/smbfs.c, as this is the only
place where it is used. This is necessary because the SunPro
	compiler creates external references even for functions that are
	only referred to in unused inline functions.
2005-06-08 00:23:44 +00:00
Roland Illig
d99bb2db9e Update the version number in the man pages, not only the date. 2005-06-08 00:13:08 +00:00
Leonard den Ottolander
f5dabea2a6 main.c: Also match tabs as empty command. 2005-06-07 20:55:13 +00:00
Roland Illig
b01a803341 Replaced the release procedure with a new one that takes into account
that we have translators that need some time for translating, not just
three days. Also added the definition of CVS tags and branches.
2005-06-07 17:14:04 +00:00
Roland Illig
3ce4818b9b The error log files are printed to stdout instead of stderr. This makes it
easier to use a pager with mc-test.
2005-06-07 14:54:11 +00:00
Roland Illig
6edc2743db * command.c (command_callback): Fixed gcc warning about
incompatible pointer types.
2005-06-07 14:16:19 +00:00
Andrew V. Samoilov
7a0f4c45ef * subshell.c (exit_subshell): Do not blindly perform cleanup. 2005-06-07 09:05:09 +00:00
Roland Illig
b2b0d33105 * view.c (view_move_up): In text wrap mode, don't display parts
of lines that only consist of the (invisible) newline character.
	* view.c (view_move_down): Likewise.
2005-06-07 07:37:00 +00:00
Roland Illig
69879eab1e * view.c (view_ccache_lookup): Replaced the min_nroff_column
variable with a state chart, which makes the code clearer and
	fixes a bug in translating line/column pairs into offsets.
2005-06-07 07:06:48 +00:00