Commit Graph

7041 Commits

Author SHA1 Message Date
Roland Illig
c9ab4e7566 Brackets and braces have a special meaning when used in syntax definition
files.
2005-07-20 11:14:15 +00:00
Roland Illig
77b5978cf1 Removed unused macros mc_mmap and mc_munmap. 2005-07-18 13:21:50 +00:00
Roland Illig
87ab858ab0 Removed unused <mman.h>. 2005-07-18 13:20:39 +00:00
Roland Illig
590d5c7ed9 Wrote a small rationale for using "global.h". 2005-07-18 11:33:36 +00:00
Roland Illig
e34ffeeb36 Fixed a typo noted by Jindrich Novy. 2005-07-18 10:03:26 +00:00
Roland Illig
fb221cb8b0 * editkeys.c: When typing literal characters after C-q, allow
the alphabetic characters to input ASCII control characters.
2005-07-18 09:32:19 +00:00
Roland Illig
6d3226c4e7 * util.c: Added ascii_alpha_to_cntrl(), which converts 'x' to
^X. Useful for entering control characters literally.
	* util.h: Likewise.
	* widget.c: Use that function after C-q.
2005-07-18 09:31:37 +00:00
Roland Illig
ace71736b8 * view.c: The viewer can remember the last file position and
restore it, like the editor. This fixes Savannah bug #13734.
	* view.h: Likewise.
	* setup.c: Likewise.
2005-07-18 08:47:45 +00:00
Roland Illig
ecfbe13fa3 AC_CHECK_TYPES([mode_t off_t pid_t socklen_t uid_t nlink_t],,, 2005-07-14 06:31:29 +00:00
Roland Illig
de5d9b1d40 * view.c: Always call display() before close_error_pipe() to make
sure the screen looks nice.
	http://mail.gnome.org/archives/mc-devel/2005-July/msg00194.html
2005-07-13 21:30:28 +00:00
Roland Illig
ea48e88eea * ada95.syntax: Sorted keywords alphabetically. 2005-07-13 03:34:15 +00:00
Roland Illig
822143b61b Sorted some keywords alphabetically. Removed "sub" context, as it has had
no effect.
2005-07-13 03:29:47 +00:00
Roland Illig
c2ad6b1cd9 * perl.syntax: Added a keyword to detect subroutine prototypes.
Sorted some keywords alphabetically. Added the "warning" pragma.
2005-07-13 03:19:32 +00:00
Roland Illig
3383c003fd * perl.syntax: #! lines are marked as contexts instead of
keywords.
	* sh.syntax: Likewise.
2005-07-12 18:30:54 +00:00
Roland Illig
fae0cabfc6 * view.c (view_hexedit_save_changes): Use the VFS file functions
instead of the native ones. This makes it possible to edit
	remote files using the hex editor.
2005-07-12 07:22:49 +00:00
Roland Illig
c61ea2f1c4 Removed leading underscores from variable names. 2005-07-12 07:01:47 +00:00
Roland Illig
8d475c4c35 * view.c: Added some paragraph comments. Changed some literal
expressions (e.g. 0 => '\0', 0 => NULL). Fixed indentation.
2005-07-12 06:04:38 +00:00
Leonard den Ottolander
36887bcf4a po/ChangeLog: Forgot entry for last po/nl.po update. 2005-07-11 20:53:39 +00:00
Leonard den Ottolander
5ebdb61345 po/nl.po: Translate to ISO-8859-1, we can't use UTF-8 on unpatched systems.
Translation, hotkey and alignment improvements.
2005-07-11 20:51:10 +00:00
Roland Illig
9f62ed703a Changed three one-line comments to one multi-line comment. 2005-07-11 08:17:38 +00:00
Roland Illig
5d5afede78 (view_display_ruler): Reduced code size by declaring a string literal as
"static". (view_display_hex): Added a FIXME concerning screen overflow.
2005-07-11 08:14:44 +00:00
Roland Illig
8bbf0d25fe * view.c (view_update_bytes_per_line): Use a local variable to
do the computation. Update view->bytes_per_line only once, after
	all computations have finished.
2005-07-11 07:39:04 +00:00
Roland Illig
35b218fc69 (view_move_down): Brought to cursor-normal-form. 2005-07-11 07:26:31 +00:00
Leonard den Ottolander
afca7c4ecb nl.po: Add missing translations, fix fuzzy strings, other improvements. 2005-07-10 12:33:29 +00:00
Leonard den Ottolander
8383793469 configure.ac: Rename AS_HELP_STRING to AC_HELP_STRING (fix undefined macro). 2005-07-10 10:45:28 +00:00
Leonard den Ottolander
2998f55697 lt.po: Fix typo (&). 2005-07-10 08:55:07 +00:00
Leonard den Ottolander
1bf69bc163 info.c (info_show_info): Properly calculate the length of the line drawn
by hline().
2005-07-10 08:46:54 +00:00
Leonard den Ottolander
565866175d NEWS: Fixed commit to the wrong branch. 2005-07-08 14:07:31 +00:00
Leonard den Ottolander
26e5b1d1c0 NEWS: Reorganized and updated post 4.6.0 entries. 2005-07-08 13:41:29 +00:00
Roland Illig
b8969ae3df * view.c (view_ccache_find): Replaced the linear search with a
binary search. This speeds up the viewer by a factor of 25 for
	large files (> 100 MB).
2005-07-07 22:34:31 +00:00
Roland Illig
ca15b965d6 Added to result-equivalent functions for view_ccache_find_linear_down().
All three work, but view_ccache_find_binary() is the fastest of all. So
the other ones will be removed in the next revision. This revision is
mainly for the records.
2005-07-07 22:30:56 +00:00
Roland Illig
0072aeb2e5 Provided multiple versions of view_ccache_find(), which can be selected by
defining C preprocessor symbols.
2005-07-07 21:46:01 +00:00
Roland Illig
bc446f0cee * dialog.h: Replaced object-like macros with implicit references
to an identifier ``h'' with function-like macros. Adjusted all
	users.
	* dialog.c: Likewise.
	* find.c: Likewise.
	* tree.c: Likewise.
	* widget.c: Likewise.
	* widget.c (widget_selectcolor): New function that selects a
	color among DLG_{HOT_,}{FOCUS,NORMAL}C.
2005-07-07 19:34:55 +00:00
Roland Illig
0c2b595997 * view.c (view_display_text): Fixed handling of tabulators. 2005-07-07 18:38:12 +00:00
Roland Illig
4fc6e727e7 Fixed the special handling of nroff character sequences at the beginning of
the screen. Removed the wrong comment. Only advance behind the backspace
character and display the rest of the nroff sequence.
2005-07-07 18:06:57 +00:00
Roland Illig
4d7a3f6779 * view.c (view_compute_areas, view_percent, view_display_status,
view_display_ruler): Fixed screen overflow bugs.
2005-07-07 17:49:01 +00:00
Roland Illig
bcf9978ee8 * view.c (view_update_bytes_per_line): Fixed integer overflow
bug.
2005-07-07 17:09:59 +00:00
Roland Illig
00fcae9141 * view.c: view_display_status() is called inside display(). 2005-07-07 17:03:25 +00:00
Roland Illig
c4d669162a * view.c (view_status): Renamed to view_display_status(). 2005-07-07 16:59:31 +00:00
Roland Illig
cecafaab0b * view.c (view_compute_areas): Fixed a bug noted by Pavel
Tsekov. The coordinates are now relative to the Widget, as they
	should be.
2005-07-07 16:48:55 +00:00
Roland Illig
338c32c400 Added an assertion to offset_rounddown to make sure that b != 0. 2005-07-06 22:35:17 +00:00
Roland Illig
5d9985751a Clean up #include's in all files. 2005-07-06 21:50:00 +00:00
Roland Illig
bf034f70e1 * edit.h: Added missing #include <stdio.h>. 2005-07-06 21:26:26 +00:00
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
133196d197 vfs/tar.c (tar_read_header): Properly handle non \0 terminated tar entries
with name of length NAMSIZ.
2005-07-06 14:15:54 +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
bb14c4e1da * vfs.h, vfs-impl.h, vfs.c, local.h, local.c, sfs.c: Removed
support for mmap() and munmap() from the VFS. It is unused and
	cannot be applied to remote file systems.
2005-07-05 21:01:57 +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