Commit Graph

7388 Commits

Author SHA1 Message Date
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
Pavel Tsekov
465972e0b9 * tar.c (LF_EXTHDR): New macro definition.
(LF_GLOBAL_EXTHDR): Likewise.
(tar_read_header): Skip over pax extended header and global extended
header records.
2006-01-18 15:14:56 +00:00
Andrew V. Samoilov
c5800b05f3 * include/slang.h: comment out declaration of SLmemset(), SLmemchr(),
SLmemcpy(), SLmemcmp(), SLmalloc(), SLfree(), SLrealloc().
        * slcommon.c: comment out definitions of SLmalloc(), SLfree(),
        SLrealloc().
        * include/jdmacros.h: Fully rewritten to use glib rather than S-Lang
        replacements.
        * slmisc.c: Remove SLang_Version variable.
2006-01-18 05:34:20 +00:00
Pavel Tsekov
1504162feb * Forced commit. 2006-01-17 13:46:12 +00:00
Andrew V. Samoilov
5c83819e50 * sldisply.c (SLtt_initialize): Fix typo. Change Is_Bg_BGR
to Is_Fg_BGR.  (SLtt_goto_rc): Disable cursor movement optimizations
        for qansi-m consoles. Needed on QNX Neutrino. (SLtt_initialize): Init
        QANSI_Console variable. (SLtt_erase_line): Use tt_write() instead
        tt_write_string(). (SLtt_cls): Use tt_write() instead tt_write_string().
        (SLtt_tgetstr): Fix warning.
        * slmisc.c: Trimmed down for use in GNU Midnight Commander.
        * sltermin.c (_pSLtt_tigetent): Avoid strncpy, home_ti is 1K long and
        obody really needs it whole cleared. Fix possible off-by-one error.
        * include/slang.h: Define __unix__ if __MACH__, __NetBSD__,  _AIX is
        defined.
2006-01-13 19:49:23 +00:00
Roland Illig
adc2d181c7 * view.c: Replaced calls to printw() with tty_printf() to get
rid of the str_unconst() function.
2006-01-07 18:17:27 +00:00
Roland Illig
58337baa8d White-space and indentation fixes. Rewrote the expressions for the
*_PRESSED constants to emphasize they are in fact bit masks.
2006-01-07 12:49:08 +00:00
Roland Illig
63a504ffed It was not Redhat who changed the SLang API of SLsmg_write_char, but
actually Debian. Redhat only copied that code.
2006-01-07 12:17:07 +00:00
Roland Illig
60d1a87ba7 2005-12-02 Jindrich Novy <jnovy@redhat.com>
* php.syntax: Fixed syntax errors.
2005-12-02 14:37:10 +00:00
Pavel Roskin
a0411b6b77 * slvideo.c: Remove, it's only used by the obsolete PC port.
* slw32tty.c: Likewise.
* Makefile.am: Adjust for the above.
2005-11-29 01:15:09 +00:00
Pavel Roskin
e698d44514 * spec.syntax: Add %check highlighting. 2005-11-23 21:12:43 +00:00
Leonard den Ottolander
6dc6b09935 * *.po: Shouldn't have touched string "command &Prompt" in last update.
Reverting.
2005-11-22 22:14:22 +00:00
Leonard den Ottolander
689681db31 * edit/editcmd.c (edit_replace_dialog): Use Alt-m on pro&Mpt in replace
dialog. Alt-p is in use for the previous entry.
* po/*.po: Update pro&Mpt string.
2005-11-22 22:05:44 +00:00
Leonard den Ottolander
37dae70964 * syntax/php.syntax: Reset the constant array in the script that generates
the keywords (remove duplicates). Also parse for constants in tables as the
type tagging is done inconsistently in the online PHP docs.
2005-11-20 14:42:01 +00:00
Leonard den Ottolander
ef243502f4 * syntax/php.syntax: Missed the '::' method separator. 2005-11-20 00:17:36 +00:00