Commit Graph

3987 Commits

Author SHA1 Message Date
Andrew Borodin
63cc3d01af Ticket #2434: fixed source file name of file operation.
If file name is absolute, don't join it with current directory name.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 15:41:19 +03:00
Andrew Borodin
00b1aa4a8e Fixup of formatted output of file size in 'File exists' dialog window.
The %j modifier used to show file size produces segmentation fault
on some platforms. PRIuMAX macro cannot be used within i18b'd strings.
Solution: use %llu modifier with typecasting to unsigned long long.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 13:28:03 +03:00
Andrew Borodin
fe8c5390ad Fix of uintmax_t variables output.
Use PRIuMAX and PRIXMAX instead of ju and jX modifiers respectively
for formatted output of uintmax_t variables.
If PRIXMAX is not defined (i.e. in Solaris9), use PRIxMAX instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-03 10:58:39 +03:00
Andrew Borodin
6e6ec057cb Avoid compiler warnings.
(file_mask_dialog): do_background argument shadows do_background()
function; renamed to do_bg.

(label_callback): unitialized variable.

(read_filesystem_list): const char *.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-02 22:12:56 +03:00
Andrew Borodin
5891476737 Cast mode_t to unsigned int for formatted output.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
62c05d62f3 Ticket #2409: fix of GModule detection and usage.
Don't mix GLib and GModule compiler and linker options.

Use gmodule-no-export if present to avoid use -Wl,--export-dynamic
option with some linkers. If gmodule-no-export is not available,
use generic gmodule.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 21:59:42 +03:00
Andrew Borodin
2745980520 Ticket #1939: fix of panel state saving.
Panel state is saved in ~/.mc/panels.ini:
1) when "Save setup" command is invoked;
or
2) when MC is quited and "Auto save panels setup" option is set.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 12:48:20 +03:00
Andrew Borodin
680b9a8220 Ticket #2432: backspace key doesn't work in input lines.
Also added default bindings for C-d and C-h keys in editor and input
lines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 11:30:34 +03:00
Andrew Borodin
380d9bd885 Ticket #2171: colors for popup menu:
... for menu items, selected menu item and for menu title.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:55:59 +03:00
Andrew Borodin
17783a240c Adjust formatting output of source and destination file sizes
... and replaced tabs by spaces in defines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:52 +03:00
Andrew Borodin
bd4dd44ac8 Unification of ctx and ctx->ui checks.
... and type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:52 +03:00
Andrew Borodin
d14f048575 Removed unneeded checks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
a95d786742 Optimization of verbose operations with several files.
Check values of verbose and dialog type outside of
file_progress_show_count() and file_progress_show_total()
to avoid double checks of those options and extra function calls.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
3e7b58d5af Use size_t instead of off_t for file counters during file operations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
12ccfdff6c Ticket #2429: overflow of file operation counters.
Use uintmax_t type instead of double for summary size of several files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-02 09:41:51 +03:00
Andrew Borodin
15013927e7 Include inttypes.h instead of stdint.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-26 11:31:18 +03:00
Andrew Borodin
5ec2e4507c Modified output of --version key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-25 16:31:05 +03:00
Slava Zanko
bbf1f4e857 Moved filemanager-related stuff to src/filemanager directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:32 +03:00
Andrew Borodin
116fdc4220 Init/deinit clean up
...to provide symmetrical usage of init/deinit functions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin
fdb61594df Cleanup of main.[ch].
All file panels related stuff was moved to midnight.[ch].

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
0ef9273598 Changes for avoid compiler warnings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
08e9759283 Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
File src/cmddef.h now merged to lib/keybind.h

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:31 +03:00
Slava Zanko
62f3c368c9 Renamed keybind-related functions:
* lookup_action          -> keybind_lookup_action
* lookup_keymap_shortcut -> keybind_lookup_keymap_shortcut
* lookup_keymap_command  -> keybind_lookup_keymap_command

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
045debaa8a Moved charsets.[ch] from src to lib directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
dc0a963304 Refactoring: removed unused variable
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
fcc98371d6 Removed unneded utility mcmfmt
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin
1ae9172d2a Renamed mc_config_direct_set_string() to mc_config_set_string_raw()
... and avoid any string modification before save to ini.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
3d92a0846a Menu improvements.
menubar_set_visible(): new function to get rid of menubar_visible global variable
in widgtes library.

menu_set_name(): new function to avoid total recreation of main menu
after change panel layout.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
f24dd62dc2 Use str_msg_term_size() instead of msglen()
... because msglen() is not tolerant to multi-byte encodings.
Remove msglen() because it unused now.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
71364f88c3 Split lib/widget/widget.[ch] and lib/widget/wtools.[ch] files
...into small: one widget in one file.
Renamed most if WInput functions.
Minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
8d1708225c Don't include lib/util.h via lib/global.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
141926344d if_link_is_exe() and link_is_dir() now return gboolean
...and link_is_dir() is inline now.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
d543be11d9 Use g_file_get_contents() instead of load_file().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Slava Zanko
8b018db98f Some WIDGET-related stuff moved to lib/widget directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:30 +03:00
Andrew Borodin
43ed65e3d9 Moved string-related routines from lib/util.[ch] into lib/strutil.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:29 +03:00
Andrew Borodin
011b6670e2 Direct typecasting instead of str_unconst() calls.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:29 +03:00
Andrew Borodin
9b7601476e Diff viewer fixups.
(dview_status): use str_term_trim() instaed of trim() to trim file name.
(dview_get_title): reimplemented using GString because str_term_trim()
returnes a pointer to internal static buffer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:29 +03:00
Slava Zanko
96cb95cc95 Code indentation in src/viewer directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:29 +03:00
Slava Zanko
cb4bdfa00d Code indentation in src/editor directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:29 +03:00
Slava Zanko
61345bd8e2 Code indentation in src/consaver directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:47 +03:00
Slava Zanko
1ff8b77f92 Code indentation in src directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:47 +03:00
Slava Zanko
14e958a0a4 Removed unused fsusage.c and fsusage.h
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:47 +03:00
Slava Zanko
c57566af00 Avoid compiler warnings.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:47 +03:00
Andrew Borodin
d169d13296 Use str_trunc() directly instead of name_trunc().
name_trunc(): removed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:47 +03:00
Andrew Borodin
53ad349a36 Moved time related stuff from lib/util.[ch] into lib/timefmt.[ch].
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:47 +03:00
Andrew Borodin
9b43d71799 Set SLtt_Ignore_Beep in tty_init().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:47 +03:00
Andrew Borodin
9ec4d4c08b Check variable before g_array_free() call.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:47 +03:00
Andrew Borodin
79133154b0 Moved hooks from lib/util.[ch] to new files lib/hook.[ch]
... and renamed Hook to hook_t.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:46 +03:00
Slava Zanko
c2754de8aa Code indentation in src directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:46 +03:00
Andrew Borodin
5e0c9c911d Moved declaration of "easy_patterns" variable from lib/util.[ch] to src/setup.[ch].
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:46 +03:00
Slava Zanko
feb733663f Code indentation in lib directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:20 +03:00
Andrew Borodin
4892044e71 Remove extra check before mc_search free() call.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:20 +03:00
Andrew Borodin
9a8ae90a49 Reimplemented search engine in editor.
Now search engines of editor and viewer use the identical algorithm.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:20:26 +03:00
Andrew Borodin
a80c9edb93 Ticket #2417: incorrect charset conversion in editor search engine.
Initial step: type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:20:26 +03:00
Andrew Borodin
3e7d76eb13 Ticket #2197: added new color for status bar
...and added missed colors for button bar.

Updated EN and RU man pages.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:07:17 +03:00
Aleksey Cheusov
faff5709c6 Ticket #2425: fixup read_filesystem_list() for NetBSD >=3.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-21 10:11:57 +03:00
Andrew Borodin
e8c35970ee Ticket #2415: keep active state of editor before final decision about quit.
The same fix is applied to viewer and diffviewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-20 12:57:38 +03:00
Tomasz Pala
8eef3c7d78 Ticket #2229: speed up of up/down moving in viewer in wrapped mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-11 13:02:49 +03:00
Andrew Borodin
b1ac21fb74 Move rotating dash to new function
... and clear dash after search finish.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-08 13:22:44 +03:00
Andrew Borodin
124deb9cff Unification of invalid filename skip.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-08 13:22:44 +03:00
Andrew Borodin
885b1b4f82 Optimization: ret rid of select_item() call
...after go to the found file or directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-08 13:22:44 +03:00
Andrew Borodin
f5a93bf74c Fix of directory ignorance in file find engine.
Start directory is used and displayed now as absolute path.
2010-11-08 13:22:44 +03:00
Andrew Borodin
fdc443501a Ticket #2366: ignore_dirs does not work while file searching.
Refactoring: reimplement find_ignore_dirs as sorted array of strings.
Handling value of ignore_dirs like "/foo::/bar/:".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-08 13:22:44 +03:00
Ilia Maslakov
b7df339285 Fixed highlighting in command line (was broken: aa9cb6d320)
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-11-05 13:26:18 +00:00
Ilia Maslakov
458cf7cf55 Ticket #2393 (no put removed text into clipboard)
no more put removed text into clipboard. when doing CK_InputKillWord, CK_InputBackwardKillWord

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    * WInput routines: get rid of one-line functions.
    * added CK_InputClearLine handler. Now CK_InputClearLine - clear command line,
    CK_InputKillLine - clear command line from cursor to the EOL.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-11-05 13:26:02 +00:00
Tomasz Pala
525320071c Ticket #2135: End button in MC viewer jumps too far
Previous solutions have broken one of the viewer features (http://www.midnight-commander.org/ticket/1778)

What suggest is fixing PgDn in a way, that it switches to one-line mode after EOF and add a check to ensure,
that at least one last line stays visible (4.7.1 behaviour of end/pgdn was irritating indeed).

With this patch, PageDown at the last page scrolls file line by line instead of entire page.
This is feature, not a bug. :)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-05 13:23:38 +02:00
Andrew Borodin
4bfd6436c5 Change hotkey for "Search for content" and "All charsets" checkboxes
...to resolve conflict with input line shortcut.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-05 12:08:58 +03:00
Andrew Borodin
bac6d60f46 Ticket #2407: crash of mc when chdir to find file.
Don't use content if "Search for content" checkbox is off.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-05 12:08:58 +03:00
Andrew Borodin
50ba1adca4 Ticket #2405: fixed key event handling in "Listing mode" dialog.
Typing 'u' in "User defined mode" input line, the "User defined"
radio-button is checked instead of putting the 'u' letter
into the input line.

Bug was introduced in 80d34ca625.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 21:55:12 +03:00
Yury V. Zaytsev
267ec33b2a Applied MC indentation policy
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:07 +01:00
Yury V. Zaytsev
d6f2d82618 Fixed up several comments
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:07 +01:00
Andrew Borodin
ed5cc99fed Optimization: don't process search handlers too often
Miscellaneous changes:

    * Create search handlers before search session and destroy afterwards.
    * Get rid of goto operator in do_search() functon.
    * Fixed handling of DLG_VALIDATE message.
    * Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:07 +01:00
Andrew Borodin
6a36a33b33 Optimization: don't destroy the "Find file" dialog before call "Tree" one
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Andrew Borodin
8d3bbf3b26 Content search options can be disabled using "Search for content" checkbox
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev
e07bb515f3 Reorganized "Find File" checkboxes
Made "Find recursively" and "Search for content" appear the
first, as they are completely logically independent and influence the
way the strings entered in the corresponding fields are used.

"Using shell patterns" and "Regular expression" come next, as
they set a similar property of the fields. Same goes for the "Case
sensitive" and "All charsets" group.

"Skip hidden" and the rest close the show up.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev
b68bef2cb6 Take into account the value of the "Search for content" checkbox
If "Search for content" checkbox is enabled, then content_pattern is
initialized as usual. Otherwise, it's forcibly set to NULL.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-11-02 09:34:06 +01:00
Yury V. Zaytsev
1b260e6773 Ticket #2046: Added "Search for content" checkbox to the Find File dialog
This checkbox allows to define whether the "Content" field should be
taken into account or not when performing file search. The checkbox
remembers its state across sessions.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-11-02 09:34:06 +01:00
Andrew Borodin
0908c8baea Ticket #2404: added forgotten shotrcuts of mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 21:31:24 +03:00
Slava Zanko
a0d69353e8 Code cleanup for avoid compiler warnings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-01 15:48:38 +02:00
Andrew Borodin
4aec2187e1 Ticket #1894: sort order should not mix hidden files with others.
In case sensitive sort, the order of files and directories is following:
hidden dirs
dirs
hidden files
files

In case insensitive mode, directories are mixed and files are mixed too:
dirs (hidden and not are mixed)
files (hidden and not are mixed).

This commit defines the sort order independently of case sensitivity:
hidden dirs
dirs
hidden files
files

Files in UTF-8 locale require special handling: leading dot must not be
processed in g_utf8_casefold() funcion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:02:57 +03:00
Andrew Borodin
4c40d57508 (edit_set_filename): expand tilde while setting file name.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin
8088fe9b66 Ticket #2398: tilde is not treated as home directory in editor "Save As" dialog.
(edit_get_save_file_as): return file name with expanded tilde.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin
8be556abc5 Declarations of use_dash() and rotate_dash() were moved form lib/util.h to src/layout.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-27 18:10:50 +04:00
Ilia Maslakov
8b46518619 Apply code identation policy.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-10-27 18:10:50 +04:00
Ilia Maslakov
3ba4abac41 Ticket #2268 (FISH: hide panels before connecting)
FISH: now hide the panel before connecting.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-27 18:10:49 +04:00
Andrew Borodin
185d5fc359 Install help files into /usr/share/mc/help instead of /usr/share/mc.
Optimisation of language-specific help file creating.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin
280194ec15 Install hint files into /usr/share/mc/hints instead of /usr/share/mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:59 +04:00
Andrew Borodin
bfbac0c5d8 Reimplemened codepages storage using GPtrArray.
Added capability to load codepage list from /usr/share/mc/mc.charsets
and /etc/mc/mc.charsets and merge them then.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:25:53 +04:00
Andrew Borodin
245f465d6e Install mc.charsets into /usr/share/mc instead of /etc/mc.
Renamed CHARSETS_INDEX macro to CHARSETS_LIST.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
1c3aae85ec Minor optimization of [Special dirs] handling.
(tree_store_rescan): use g_list_foreach() to free content of list.
(process_special_dirs): get rid of extra memory allocation.
(should_skip_directory): type accuracy and variable intializations.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
fed3d099c3 Install mc.lib into /usr/share/mc instead of /etc/mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
51f28528f6 Ticket #1424: install some files into /usr/share/mc instead of /etc/mc.
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets

First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Egmont Koblinger
1256af2269 Ticket #2395: scroll down the panel contents by mouse dragging.
Start mc, and make sure that at least one of the two displayed
directiories contains so many files that they cannot all be displayed
at once.

Click in this panel and hold the mouse button pressed, and then move
your mouse downwards. As you pass beyond the bottom of this list, it
should start scrolling.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 20:45:51 +04:00
Andrew Borodin
e4105c1e72 Ticket #2324: fix of syntax highlighting lost after manual change.
Also some type accuracy is provided.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 15:10:27 +04:00
Slava Zanko
f53ed400fb Merge branch '2170_separate_colors'
* 2170_separate_colors:
  Newly added colorpair names now described in man-page
  Ticket #2170: Color collisions
2010-10-13 13:23:25 +03:00
Egmont Koblinger
aa9cb6d320 Ticket #2170: Color collisions
Midnight Commander's color/skin engine often reuses the same color definition for multiple elements on the UI.
This unnecessarily limits the possibilities when playing with colors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-13 13:21:10 +03:00
Slava Zanko
5ed7f49eee Added default keybind for CK_DiffViewCmd command
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-12 13:13:11 +03:00
Andrew Borodin
10949329a7 Fixed signed and unsigned comparisons in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Andrew Borodin
fe2c50cc19 Ticket 2356: viewer segfaults on ARM platform because type mismatches of printf arguments.
Fixed type mismatches of printf arguments in viewer;

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 11:00:29 +03:00
Slava Zanko
89b905d83b Added doxygen documentation for touched functions.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-11 10:39:37 +03:00