Commit Graph

7239 Commits

Author SHA1 Message Date
Roland Illig
99f3df1591 * screen.c (string_file_name): Increased the buffer size to
MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
2005-08-18 04:40:45 +00:00
Roland Illig
541c12241f * view.c (struct WView): Renamed found_len to search_length. 2005-08-18 04:11:52 +00:00
Roland Illig
0601d83324 * view.c (view_display_text): Removed the (almost) unused
variable boldflag.
2005-08-18 03:50:29 +00:00
Roland Illig
b7cba56d21 * view.c (view_display_hex): Completely rewritten. Now the code
distinguishes several phases (state selection, color selection,
	printing) and does not mix them wildly, as the previous code
	did.
2005-08-18 03:33:33 +00:00
Roland Illig
ba8ba542f0 * view.c (view_move_up): Don't scroll up if it is not necessary.
This fixes an inconsistency noted by Andrej Zebrowski on
	mc-devel.
	* view.c (view_move_down): Do nothing if we're already at the
	end of the file. This makes the cursor movement more consistent
	with the behavior of the <End> key.
	* view.c (regexp_search_cmd): Moved the code to save the changes
	of the hex editor out of this function. Whoever wrote that
	should be blamed for it, but the code has been there since the
	beginning.
2005-08-18 02:26:39 +00:00
Roland Illig
01432587b8 Changed the return type of view_toggle_ruler() to void. 2005-08-16 09:04:29 +00:00
Roland Illig
ad29def0c4 * view.c (view_init_growbuf): Mark the first page full instead
of empty. This saves one condition in view_growbuf_read_until().
2005-08-16 08:59:14 +00:00
Roland Illig
03d2e06c41 Layout change for better readability. 2005-08-16 08:51:55 +00:00
Roland Illig
0deeec756e Added some white-space for better readability. The coordinates of the
status line are computed like the other ones (was implicit before).
2005-08-16 08:47:15 +00:00
Roland Illig
9758c34a82 Added some white-space for better readability. 2005-08-16 08:37:05 +00:00
Roland Illig
c2564e99f6 * view.c (view_place_cursor): Made the call to widget_move()
look like the other calls.
2005-08-16 08:22:07 +00:00
Roland Illig
7b35eaa34d * view.c (view_percent): Fixed coordinate computation. 2005-08-16 08:16:12 +00:00
Roland Illig
d76dc9218b Fixed a typo in a comment. 2005-08-16 08:00:15 +00:00
Roland Illig
ae3c8a324d Don't mix enums with ints. 2005-08-15 22:59:20 +00:00
Roland Illig
08a40c8d17 * screen.c (use_display_format): Removed unused variable. 2005-08-15 22:40:58 +00:00
Roland Illig
5c7a219b36 Don't mix enums with ints. 2005-08-15 22:36:53 +00:00
Roland Illig
4e3e810973 * complete.c: Don't mix enums with ints. 2005-08-15 22:33:20 +00:00
Roland Illig
a94e34c698 * complete.c (fetch_hosts): Removed unused variable. 2005-08-15 22:30:36 +00:00
Roland Illig
b973c398dc * view.c (view_toggle_ruler): Don't mix enums with ints. 2005-08-15 21:59:08 +00:00
Roland Illig
d36a6c6cdb Replaced 0 with LISTBOX_APPEND_AT_END. 2005-08-15 21:46:34 +00:00
Roland Illig
66d059bcdf Replaced 0 with LISTBOX_APPEND_AT_END. 2005-08-15 21:46:34 +00:00
Roland Illig
7152139ad6 * wtools.h: Replaced 0 with LISTBOX_APPEND_AT_END. 2005-08-15 21:44:41 +00:00
Roland Illig
1c607a7414 Removed unused variable. 2005-08-15 21:40:34 +00:00
Roland Illig
ad8b819a48 * editdraw.c (render_edit_text): Removed unused variables. 2005-08-15 21:38:33 +00:00
Roland Illig
dee3850ee4 * editdraw.c (render_edit_text): Removed unused variable. 2005-08-15 21:37:34 +00:00
Roland Illig
3b1fcf6792 * editcmd.c (edit_completion_dialog): Code cleanup. 2005-08-15 21:35:33 +00:00
Roland Illig
b4479c533d * direntry.c: Removed an unused variable. 2005-08-15 21:25:02 +00:00
Roland Illig
b5e201a74a Replaced a literal 0 with a "typed" 0, namely NETRC_NONE. 2005-08-15 21:22:30 +00:00
Roland Illig
7c1b001728 * vfs-impl.h (union vfs_dirent): Using the offsetof macro
instead of null pointer arithmethics.
2005-08-15 21:13:53 +00:00
Roland Illig
f79711252d The various get[ug]id functions are used, so add checks for them. Same
for isascii.
2005-08-15 21:02:17 +00:00
Roland Illig
2b6d96d72d * configure.ac: The function getgrouplist() is not used anymore,
so there is no need to check for it.
2005-08-15 20:59:13 +00:00
Roland Illig
f9df117df1 * edit-widget.h: Changed bit fields of length 1 from signed to
unsigned.
2005-08-15 20:34:26 +00:00
Roland Illig
32f6020a0f * dialog.h (struct Dlg_head): Changed the bit fields of length one
from signed int to unsigned int.
2005-08-15 20:30:55 +00:00
Roland Illig
ae815922de view_init: Made the initialization order the same as the order in which the
fields appear in struct WView. Explicitly initialize view->marks[], as they
are used without other initialization.
2005-08-15 18:58:18 +00:00
Roland Illig
6e0a3be319 * view.c (view_ccache_lookup): Rewrote the calculation of the
cache entry. Also don't put entries in the cache when the
	current byte is '\r'.
	* view.c (view_ccache_dump): Extended the output by the offset
	of the next line.
2005-08-15 11:49:30 +00:00
Roland Illig
69e4d3f825 * view.c (toggle_hex_mode): Now the hex cursor is always visible
after switching to hex mode.
2005-08-15 10:22:18 +00:00
Roland Illig
3dd9ec536b * view.c (view_growbuf_read_until): When using mc_read, recover
from interrupted system calls.
2005-08-15 10:04:49 +00:00
Roland Illig
c4da4aecf2 Made the search function interruptible. 2005-08-15 09:55:19 +00:00
Pavel Roskin
56c1ec97ad * choosesyntax.c (edit_syntax_dialog): Add parentheses as
suggested by gcc.
* editkeys.c: Use braces in the keymap initializers.
2005-08-10 16:47:44 +00:00
Roland Illig
6b874e13aa * view.c (view_growbuf_read_until): On short reads, try to read
one more byte to check whether we're already at the end of file.
	This makes the ">=" disappear earlier.
2005-08-06 18:19:14 +00:00
Roland Illig
725c9f7b34 * textconf.c: Include ecs_char in the list of type
characteristics that are printed.
2005-08-06 16:33:54 +00:00
Roland Illig
070b0dccf2 Use hline() instead of addch() to clear the menubar widget area. 2005-08-05 12:01:47 +00:00
Pavel Roskin
9e2a3f2208 Replace obsolete "Copyright" with "License". 2005-08-02 23:26:07 +00:00
Pavel Roskin
82fcec6544 Use msgmerge to regenerate all *.po files against the new mc.pot with the
line numbers.
2005-08-02 04:36:33 +00:00
Roland Illig
e132a00192 Added const qualifiers and type casts for <ctype.h> functions. 2005-07-31 21:09:29 +00:00
Roland Illig
ee4987bb5d * samba: Added some const qualifiers to reduce the number of gcc
warnings.
2005-07-31 21:01:26 +00:00
Roland Illig
922043282d * view.h: Renamed view to mc_internal_viewer. This avoids
hundreds of shadowed names in view.c.
2005-07-31 20:29:35 +00:00
Roland Illig
ca0d773797 * view.c: Removed global variable have_fast_cpu. It is not used
anymore.
2005-07-31 20:16:12 +00:00
Roland Illig
1b18865579 * user.c (execute_menu_command): Allow execution on no-exec
filesystems. This fixes Savannah Bug #13832.
2005-07-31 19:29:04 +00:00
Roland Illig
ae2ec0ec2e Added missing #include. 2005-07-31 19:08:18 +00:00