Commit Graph

3922 Commits

Author SHA1 Message Date
Pavel Roskin
18c160fefa * utilunix.c (canonicalize_pathname): Don't extend empty path
to "." - it can corrupt memory.
2002-07-26 21:51:16 +00:00
Pavel Roskin
cb06231d26 Mention Shift-F5 and Shift-F6. 2002-07-26 20:12:34 +00:00
Pavel Roskin
1c1493cbe5 * cmd.c (copymove_cmd_with_default): Remove, it's unused.
(copy_cmd_local): New function, copy within panel.
(ren_cmd_local): New function, rename within panel.
* cmd.h: Adjust to match.
* screen.c (panel_keymap): Associate F15 with copy_cmd_local and
F16 with ren_cmd_local.
2002-07-26 19:30:13 +00:00
Pavel Roskin
0389cbf16c * view.c (display): Don't highlight characters as bold if the
character before the backspace was different.
From Roland Illig <roland.illig@gmx.de>
2002-07-26 17:17:41 +00:00
Andrew V. Samoilov
8fec26f3d5 mc.1.in: Fix mc.no_proxy location 2002-07-26 14:11:18 +00:00
Andrew V. Samoilov
6bd685bd7c * xdirentry.h (vfs_s_fh.u.fish): Add append field.
* fish.c (fish_fh_open): Care about append.
(linear_open): Likewise.
(fish_store): Append data to target file if append is true.
2002-07-26 01:33:40 +00:00
Andrew V. Samoilov
3dc53f9d41 * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation.
(main): Add mad_init() and mad_finalize().
2002-07-25 20:33:31 +00:00
Andrew V. Samoilov
b5cfea00e1 * wtools.c (message): Fix possible buffer overflow. 2002-07-25 18:07:42 +00:00
Andrew V. Samoilov
8c9c34918b util.[ch] (app_text): Make const and adjust declaration. 2002-07-25 13:48:00 +00:00
Andrew V. Samoilov
eb7d542f24 * profile.c: Make AppName parameter const char * everywhere.
* profile.h: Adjust declarations.
2002-07-25 13:44:06 +00:00
Andrew V. Samoilov
e94799f762 * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
* color.c [HAVE_MAD]: ... here and make accessible from
other files to fix compilation.
* color.h [HAVE_MAD]: Declare dealloc_color_pairs.
2002-07-25 13:04:19 +00:00
Pavel Roskin
aeab4a933e * syntax/fortran.syntax: Fix highlighting of "*" at the
beginning of line.  Recognize "     +" as continuation.  Move
all "linestart" keywords earlier to avoid more conflicts.
2002-07-21 18:15:11 +00:00
Pavel Roskin
2e17e22122 * syntax.c (apply_rules_going_right): Recheck keyword rules when
a keyword is found on the left border of a context.
2002-07-20 09:12:55 +00:00
Pavel Roskin
8f4ca50c58 * screen.c (panel_callback): Revert last change, it has bad side
effects on the subshell.
2002-07-20 08:32:53 +00:00
Pavel Roskin
6bdeafba4d * dlg.c: Eliminate all useless x_* functions.
* dlg.h: Likewise.
* panel.h: Likewise.
* textconf.h: Likewise.
* view.c: Likewise.
* view.h: Likewise.
* widget.c: Likewise.
* main.c: Remove panel_update_marks(). Move try_to_select() ...
* screen.c: ... here.  Eliminate x_* functions.
* main.h: Remove panel_update_marks().
2002-07-19 22:16:24 +00:00
Pavel Roskin
f61bfaf8f5 * screen.c (panel_callback): Only change directory on
WIDGET_FOCUS if current_panel changes.
2002-07-19 20:22:07 +00:00
Pavel Roskin
17671c4de9 * main.c (handle_args): Don't call mc_get_current_wd(). 2002-07-19 19:08:26 +00:00
Pavel Roskin
2be225d9e0 * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
* fish.c: Likewise.
(dir_load): Update SUP.cwdir.
* xdirentry.h: Remove "home" field for fish and ftpfs.
2002-07-19 16:36:32 +00:00
Pavel Roskin
982a256ee0 * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
2002-07-19 16:04:27 +00:00
Pavel Roskin
87e4797648 Warning fix in the previous commit. 2002-07-19 15:11:20 +00:00
Pavel Roskin
b68a8a5ca8 * fish.c (fish_fill_names): New function, replacement for
generic vfs_s_fill_names() which didn't work right with fish.
2002-07-19 05:29:31 +00:00
Pavel Roskin
ead99974fb * main.c (directory_history_list): Report error if cannot change
directory.
2002-07-19 05:03:44 +00:00
Pavel Roskin
3358ffb440 Update. 2002-07-19 04:39:03 +00:00
Pavel Roskin
158bf1f8fe * *.po: Replace "undelfs" with "%s" in some messages to enable
their reuse with other VFS types.
2002-07-19 04:33:35 +00:00
Pavel Roskin
0b4a33c10f * undelfs.c (undelfs_opendir): Use parametrized messages without
VFS name for success and failure.
* fish.c (dir_load): Use new messages from undelfs.c, indicate
success by printing "done".
* ftpfs.c (dir_load): Likewise.
2002-07-19 04:29:37 +00:00
Pavel Roskin
bd2e7db466 * syntax/unknown.syntax: Don't highlight anything by default. 2002-07-19 02:58:25 +00:00
Pavel Roskin
c679783d10 More about syntax highlighting. 2002-07-18 19:36:12 +00:00
Pavel Roskin
cfbf39a89e * syntax/changelog.syntax: Highlight functions without filenames.
* syntax/Syntax: Match *ChangeLog*.
2002-07-18 19:33:27 +00:00
Pavel Roskin
4dbe6133e8 * syntax/c.syntax: Reenable highlighting for "/" and preserve
highlighting for "//" comments by using exclusive context.
* syntax/java.syntax: Likewise.
* syntax/swig.syntax: Likewise.
* syntax/slang.syntax: Reenable highlighting for "/".
* syntax/sql.syntax: Enable highlighting for "/" and "-".
2002-07-18 16:36:52 +00:00
Pavel Roskin
e58ffae223 * syntax/sql.syntax: New file.
* syntax/Syntax: Add sql.syntax.
* syntax/Makefile.am: Likewise.
From Walery Studennikov <despair@sama.ru> with minor changes.
2002-07-18 16:13:28 +00:00
Pavel Roskin
bb34f88152 * main.c (do_execute): Don't ask to press any key when the shell
is running a command - the user has already pressed Ctrl-O.
2002-07-16 06:00:54 +00:00
Pavel Roskin
e0a1975590 * lib/mc.ext.in: Remove handling of executables. They should
be handled internally for "pause after run" to work.
2002-07-16 05:16:45 +00:00
Pavel Roskin
cb49475a4d * syntax/Syntax: Associate *.itcl with tcl.syntax.
* syntax/tcl.syntax: Add itcl keywords, other improvements.
2002-07-16 04:24:35 +00:00
Pavel Roskin
637ed2c6a9 Update. 2002-07-15 17:11:18 +00:00
Pavel Roskin
2f1343ab2d Regenerated by update.pl. 2002-07-15 17:04:44 +00:00
Pavel Roskin
566339a1cc Allow spaces between "_" and "(".
Require exact extensions to avoid addiing backups.
Add some extensions (cpp, cxx) in case if some C++ project takes this
script - they are no longer covered by *.c
2002-07-15 17:03:13 +00:00
Pavel Roskin
0ab222eed4 * chmod.c: Remove all translatable strings - gettext doesn't
work in the PC port, no need to waste translators' time.
2002-07-15 16:51:11 +00:00
Pavel Roskin
fba02e6b5e Fixes in error messages. 2002-07-15 16:42:41 +00:00
Pavel Roskin
82009e2ab0 * cpio.c (cpio_read_crc_head): Undo change in the error message. 2002-07-15 16:16:26 +00:00
Marco Ciampa
735e7b5efa ~/.netrc option string added 2002-07-15 07:28:52 +00:00
Pavel Roskin
a2e8277428 * slint.c: Eliminate hardcoded color terminals. Most users no
longer need this hack, and those who do have color_terminals
option in the config file.
2002-07-15 06:01:29 +00:00
Pavel Roskin
0129bcc1ca * configure.in: Don't check for strcasecmp(), strncasecmp() and
strdup() - test results are not used except in gettext, which
provides its own tests.
2002-07-15 05:48:25 +00:00
Pavel Roskin
7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* smbfs.c: Likewise.
* tar.c: Likewise.
2002-07-15 05:31:43 +00:00
Pavel Roskin
7db8a05550 * configure.in: When checking for ncurses, check for
has_colors(), not curses_version() - the later is missing in
older version of ncurses.
2002-07-15 05:16:51 +00:00
Pavel Roskin
1517700adf * fish.c (open_archive_int): Don't combine "export" and
assignment into one command - it's not portable.  Set LC_TIME
to "C" as well.
2002-07-14 22:56:13 +00:00
Pavel Roskin
72a5fc5cc1 * syntax.c (edit_get_syntax_color): Return colorpair index, not
attribute, when syntax highlighting is disabled.  Handle black
and white mode separately.
2002-07-14 22:39:07 +00:00
Pavel Roskin
3c437c273d * syntax.c (edit_load_syntax): Do nothing in black and white
mode.
2002-07-14 22:19:49 +00:00
Pavel Roskin
82e481b78d * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
black and white mode.
2002-07-14 22:18:12 +00:00
Pavel Roskin
75666df0fe * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
* editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
by using MY_COLOR_PAIR macro.
2002-07-14 21:43:53 +00:00
Pavel Roskin
b0dfc1b672 * slint.c: Move functions for allocating color pairs ...
* color.c: ... here.  Implement ncurses equivalents.  Rename
init_pair() to mc_init_pair() and keep tack of max_index with
ncurses.  Adjust all dependencies.
2002-07-14 21:41:12 +00:00