Commit Graph

7502 Commits

Author SHA1 Message Date
Roland Illig
0780979cbc Replaced the character comparison with string comparison, which
emphasizes the intention of the code. If the directory is either "." or
"./", the plain filename is chosen.
2006-02-04 00:00:47 +00:00
Roland Illig
2d6b472fb0 * find.c (find_do_view_edit): Only strip the leading "./" from a
directory name if the rest is not empty.
2006-02-03 23:17:45 +00:00
Roland Illig
3b1d56cb8a Replaced the printf format with __printf__. 2006-02-03 17:07:39 +00:00
Roland Illig
f7f06c0202 * util.h (str_unconst): This function is never needed to be
inlined.
2006-02-03 17:04:17 +00:00
Roland Illig
9b8eb2ad78 * find.c: After the "panelize" command, always select the first
file from the panel, not.
2006-02-03 16:59:52 +00:00
Roland Illig
1e97649438 The location of the Savannah CVS repository has changed. 2006-02-03 15:24:32 +00:00
Roland Illig
2390300034 * fish.c: Replaced the printf-like attribute with __printf__,
since GNU gettext defines a macro printf on some systems.
	* ftpfs.c: Likewise.
2006-02-03 14:45:44 +00:00
Roland Illig
ba9bd33681 * view.c: s/attrset/tty_setcolor/g 2006-02-03 14:42:36 +00:00
Roland Illig
bb683b54d1 * view.c: s/attrset/tty_setcolor/g 2006-02-03 14:33:19 +00:00
Roland Illig
36e8fec66c * widget.c: Added assertions to prevent bugs like the one from
view.c(view_labels) from hiding that long.
2006-02-03 14:28:54 +00:00
Pavel Tsekov
90bda57809 * src/view.c (view_labels): Use `buttonbar_clear_label' to make a
buttonbar button inactive.
2006-02-03 12:16:38 +00:00
Roland Illig
67f8cf661a * tty.h (tty_setcolor): Added.
* tty.c (tty_setcolor): Likewise.
2006-02-03 03:55:37 +00:00
Pavel Tsekov
5c1638523e * src/dir.c: (do_sort): Remove unused variable. 2006-02-02 22:10:58 +00:00
Leonard den Ottolander
2157716489 edit/edit.c (edit_execute_cmd): Reload syntax on toggle to on. 2006-02-02 19:45:49 +00:00
Leonard den Ottolander
17108c8b2e edit/edit.c, edit/editcmddef.h, edit/editkeys.c: Add Ctrl-S to toggle syntax
highlighting.
2006-02-01 17:07:11 +00:00
Leonard den Ottolander
d3ce4129e0 slang/slcommon.c (utf8_enable): Use '==' instead of '=' for comparison. 2006-02-01 16:42:43 +00:00
Pavel Tsekov
f4e0124cd2 * src/view.c (view_display_hex): Add missing bracket. 2006-02-01 15:59:21 +00:00
Roland Illig
250fd1ab8e * view.c (view_display_hex): Prevented any screen overflow in
hex display mode. The number of bytes per line in hex mode is
	always a multiple of four -- this makes the computation easier.
2006-01-31 14:39:30 +00:00
Roland Illig
008a1e3b7d Shortened the code for selecting the ``boldflag'' in hex display mode. 2006-01-31 13:45:27 +00:00
Pavel Roskin
f394a912ce Avoid using %{_prefix} where more specialized macros are available. 2006-01-30 21:53:19 +00:00
Pavel Roskin
9b774d1b7d * Makefile.am: Rename LIBDIR to SAVERDIR to avoid confusion.
Change its value to match the installation path of cons.saver.
* cons.handler.c: Adjust for the above.
2006-01-30 20:08:28 +00:00
Pavel Tsekov
b0ced33741 * edit/editcmd.c: Do not set the field histname' of QuickWidget' unless
the widget is of type `quick_input'.
* src/boxes.c: Likewise.
* src/filegui.c: Likewise.
* src/hotlist.c: Likewise.
2006-01-30 09:22:33 +00:00
Roland Illig
3f581584d5 * view.c (view_display_hex): Bug fix: The list iterator from the
bytes that have been changed in the hex editor must be advanced
	even if the cursor is currently on a changed byte.
2006-01-30 03:50:51 +00:00
Pavel Tsekov
04000dcf84 * doc/mc.1.in: Update the documentation to reflect the fact that
confirmation may be requested when deleting directory hotlist entries
based on a user configurable setting.
* src/file.h (safe_delete): Move declaration of `safe_delete'
* src/main.h: ... here.
(confirm_directory_hotlist_delete): Declare new global variable.
* src/file.c (safe_delete): Move definition of `safe_delete'
* src/main.c: ... here.
(confirm_directory_hotlist_delete): Define new global variable.
* src/hotlist.c (remove_from_hotlist): Based on a user configurable
setting, request confirmation when removing directory hotlist
entries. The confirmation dialog honours the `Safe delete'
setting.
Reorder the buttons in the hotlist group removal confirmation
dialog so that it becomes consistent with other confirmation
boxes.
* src/setup.c (int_options): Add support for user configurable
confirmation of directory hotlist entries removal.
* src/boxes.c (conf_widgets): Likewise.
(confirm_box): Likewise.
(my_directory_hotlist_delete): New module variable.
2006-01-29 20:26:05 +00:00
Pavel Tsekov
d05ad82ea6 * dir.c (do_sort): Do not try to reorder the entries so that ".." becomes
the first entry.
(do_load_dir): When filling the list of directory entriesmake sure that
".." occupies the first element.
(do_reload_dir): Likewise.
2006-01-29 11:23:36 +00:00
Pavel Tsekov
b3fa1f0a3e * src/cmd.c: When invoking external viewer, probe VIEWER environment
variable first, then PAGER, then fall back to "view".
* lib/mc.hint: Mention VIEWER environment variable.
* doc/mc.1.in: Document support for VIEWER environment variable.
2006-01-29 10:41:47 +00:00
Roland Illig
58c936715c * xml.syntax: Attribute names only reach upto the next "=", not
further.
2006-01-29 02:46:10 +00:00
Pavel Tsekov
da3b1863ab * direntry.c (vfs_s_open): Be less restrictive when O_LINEAR is specified
and `linear_start' is not implemented.
2006-01-28 15:47:02 +00:00
Roland Illig
5eca3eb99a * sh.syntax: Only make $_ red if it appears as a whole word.
$_foo is a regular variable.
2006-01-28 09:44:05 +00:00
Roland Illig
28f0a4ab24 Patch provided in #10557. Fixes #10557. 2006-01-28 09:27:11 +00:00
Roland Illig
1a5b2ad244 Added the brief listing to the modes that can be switched to with Alt-t.
Corrected the order.
2006-01-28 09:26:13 +00:00
Roland Illig
cbf2c616ff * cmd.c (toggle_listing_cmd): Included the brief listing mode in
the list of listing modes that can be switched through using
	Alt-t.
2006-01-28 09:21:55 +00:00
Roland Illig
8f683b9789 Oops, we're already in the year 2006. 2006-01-28 00:24:57 +00:00
Roland Illig
282371e33b Rewrote the code so that it does what I intended it to do. 2006-01-28 00:23:55 +00:00
Roland Illig
e3fb94363e * Makefile.am, logging.h, logging.c: Added a new logging module
to allow easy tracing of function calls and other events. It is
	only intended for debugging.
2006-01-27 23:48:49 +00:00
Roland Illig
7b9f0a4f96 * mcserv.c: Made mcserv.c work on NetBSD 3.0/i386 with GNU
gettext 0.14 installed.
2006-01-27 23:27:35 +00:00
Leonard den Ottolander
ba902dfa31 * syntax/Makefile.am, syntax/Syntax, syntax/css.syntax: Added css.syntax by
Horvath Peter Aron.
2006-01-27 22:43:38 +00:00
Leonard den Ottolander
8dfd1a2e4d utilvfs.c: Do not parse more than 3 date elements to avoid file name parsing errors. 2006-01-27 22:20:23 +00:00
Roland Illig
d795b74525 * sh.syntax: Since $(...) isn't the same as ${...}, don't handle
them the same way. Instead, "$(", "(" and ")" are highlighted in
	bright cyan. Fixes #6415.
2006-01-27 22:17:12 +00:00
Leonard den Ottolander
a03c48ffa4 fish.c, xdirentry.h: Fix 2 GB file size limit for fish. 2006-01-27 22:16:45 +00:00
Roland Illig
b2e8006823 * utilvfs.c (is_year): The range of valid year numbers is
restricted to 1970 .. 2015 to reduce the number of parsing
	errors.
2006-01-27 22:06:07 +00:00
Roland Illig
015ebfc2fe * Makefile.am: cons.saver is installed in $(pkglibexecdir), not
in $(pkglibdir), to conform to the usual directory hierarchy
	standards. Fixes #2796.
2006-01-27 21:53:50 +00:00
Pavel Tsekov
60658b4b35 * editcmd.c (edit_block_copy_cmd): Allow a block of selected
columns	as created by Shift + F3 to be copied anywhere in
the editor area.
2006-01-27 15:00:59 +00:00
Pavel Tsekov
ed780ec9a7 * pascal.syntax: Recognize keywords starting in upper case
as well as all caps keywords.
Highlight the operators `and', `or', `xor', `shl', `shr',
`div' and `mod' in cyan and not white.
Highlight operator `=' in cyan instead of lightgray.
2006-01-27 14:23:37 +00:00
Pavel Tsekov
450fe431fc * edit.c (edit_auto_indent): Remove redundant parameters.
Change the indentation strategy to copy whitespace
from the previous line instead of filling up with allegedly
equivalent whitespace depending on the tab setting.
(edit_execute_cmd): Accomodate change of parameters to
edit_auto_indent().
2006-01-26 15:42:56 +00:00
Pavel Tsekov
c8494f41bb * xdirentry.h (LS_LINEAR_PREOPEN): New macro definition.
* direntry.c (vfs_s_open): When opening a file in linear mode,
defer the actual open operation until the first read call.
(vfs_s_read): When reading in linear mode, open the file
on the first read operation.
(vfs_s_lseek): When in linear mode, make sure that seeking is
allowed only before the first read operation.
* ftpfs.c (ftpfs_ctl): Make the code aware of LS_LINEAR_PREOPEN.
* fish.c (fish_ctl): Likewise.
2006-01-25 14:04:27 +00:00
Pavel Tsekov
9d6d306127 * ftpfs.c (ftpfs_dir_load): Fix a bad ERRNOR call. 2006-01-24 15:44:21 +00:00
Pavel Tsekov
78535f6b60 * file.c (copy_file_file): In 'Reget' mode take into account
the partially retrieved data when drawing the progress bar.
From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2006-01-24 14:07:07 +00:00
Andrew V. Samoilov
ee404fbebe * subshell.c: restart write() calls interrupted by sigchld which lead
to some bytes being swallowed from the subshell's output.
2006-01-23 18:55:36 +00:00
Pavel Tsekov
8de760e37b * ftpfs.c (ftpfs_first_cd_then_ls): Enable this functionality by default. 2006-01-23 09:52:07 +00:00