Commit Graph

2211 Commits

Author SHA1 Message Date
Roland Illig
e3176f640e Use the correct coodinates for displaying the percentage in the status line. 2005-07-06 19:36:59 +00:00
Roland Illig
0785232a60 * view.c: Changed some variables from int to screen_dimen.
Instead of relying on each of the view_display_* functions to
	compute the correct coordinates they are managed using the new
	function view_compute_areas(). In the view_display_* functions,
	all calculations are done 0-based; before, the calculation had
	involved the relative position of the area. Removed "static"
	variables from view_status(). Simplified view_display_clean().
2005-07-06 19:12:25 +00:00
Roland Illig
4150000223 Removed the #include directive for "ecs.h", as this file is not yet in HEAD. 2005-07-06 15:38:43 +00:00
Leonard den Ottolander
674dac483d complete.c: Fix autocompletion for single possible path when "complete
show all" is set.
2005-07-06 11:16:08 +00:00
Roland Illig
148f56adcd * textconf.c: mc --version prints the size of commonly used data
types.
2005-07-05 20:57:38 +00:00
Roland Illig
db1e5ef53c Added an "inline" specifier to str_unconst_inlined. 2005-07-05 20:50:02 +00:00
Roland Illig
a041ed48a9 Removed unused local variable. 2005-07-05 20:31:18 +00:00
Roland Illig
a1db50305e * chmod.c: Changed all references to umode_t into mode_t. 2005-07-05 20:14:15 +00:00
Roland Illig
9f55376746 * view.c (view_load): Don't try to use fcntl() with VFS file
handles. That cannot work.
2005-07-05 19:19:17 +00:00
Roland Illig
e3b7168498 * achown.c: Changed all references to umode_t into mode_t.
* file.c: Likewise.
2005-07-05 18:18:36 +00:00
Roland Illig
96223eace4 Replaced 8 space characters with one tab for indentation. 2005-07-03 15:31:55 +00:00
Roland Illig
aac7b35bfc The value of b is unused in view_set_byte(). 2005-07-03 14:01:25 +00:00
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
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
d093a4024c * view.c (view_percent): Remove unused variable. 2005-06-21 19:44:28 +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
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
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
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
Leonard den Ottolander
f5dabea2a6 main.c: Also match tabs as empty command. 2005-06-07 20:55:13 +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