Commit Graph

10899 Commits

Author SHA1 Message Date
Ilia Maslakov
a5bf2b5dd5 Merge branch '2483_editor_word_left_improvement'
* 2483_editor_word_left_improvement:
  Ticket #2483 (editor: improvement word left/right)
2011-02-13 08:33:06 +00:00
Ilia Maslakov
7651b5dd30 Ticket #2483 (editor: improvement word left/right)
now the cursor jump more intuitive after actions "word left"/"word right".
    It will be stop before BOL, BOF

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-02-13 08:30:19 +00:00
Andrew Borodin
20788b9bde use_mouse_p: moved definition from src/filemanager/midnight.c to lib/tty/mouse.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
b8b0abd579 Ticket #2485: added -C key to nm in View action for static libs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
c30c82ee48 ftpfs.c: added include of stdio.h needed for sscanf().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
fe60e4c89b find.c (search_content): type accuracy of return value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
77ee33e2e5 Formatting fix after indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
5b9a7dd43f (mc_config_del_param): renamed to mc_config_del_key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
ac8e519854 Remove extra checks before call of g_strfreev().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:56 +02:00
Andrew Borodin
1ceb2494e4 Fixup compile with --disable-charset.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:54:55 +02:00
Slava Zanko
8c4eb1bae8 Two small typos in strings.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-02-05 16:54:51 +02:00
Andrew Borodin
7a18ad6838 Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-05 16:38:59 +02:00
Andrew Borodin
d9fc47453b Optimization: get rid of triple run of isoinfo -d.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-04 19:25:30 +03:00
Sergey
3293c5b237 Ticket #2471: isoinfo adds ";1" to the end of file name when Joliet w/o Rock Ridge is used.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-04 19:25:18 +03:00
Ilia Maslakov
f11a7290cc Merge branch '2456_editor_incorrect_restore_selection'
* 2456_editor_incorrect_restore_selection:
  Ticket #2456 (Incorrect restore selection after UNDO)
2011-02-04 18:42:40 +03:00
Ilia Maslakov
afb498de3a Ticket #2456 (Incorrect restore selection after UNDO)
fixed incorrect restore selection after UNDO

    test case:
        1. mcedit new_empty_file
        2. type in 0123456789
        3. F3 5*left F3 - digit '4' is not marked at this point
        4. backspace, ctrl-u - digit '4' is marked now
        5. left, 2*del, 2*ctrl-u - digits '4' and '5' are not marked

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-02-04 18:32:13 +03:00
Ilia Maslakov
9b5de3c96b direct commit: utf8 fixup
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-02-03 17:14:48 +03:00
Andrew Borodin
cca5fac0e9 Missed commas.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-03 15:40:38 +03:00
Ilia Maslakov
4a6faa64fb Merge branch '2484_editor_get_prev_utf8_fix'
* 2484_editor_get_prev_utf8_fix:
  Ticket #2484 (segfault after getting previous char)
2011-02-03 09:55:51 +03:00
Ilia Maslakov
f42e10ab1d Ticket #2484 (segfault after getting previous char)
fixed segfault after getting the previous char in utf8, if previous char's
    are: 0xB1, 0xB3, 0xB6, 0xBF, 0xBC.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-02-03 09:50:15 +03:00
Andrew Borodin
d24d429db9 Merge branch '2489_viewer_old_colors'
* 2489_viewer_old_colors:
  Ticket #2489: colors of bold and selected text in viewer cannot be set in the command line
2011-02-02 14:55:26 +03:00
Andrew Borodin
e3cbdfad04 Ticket #2489: colors of bold and selected text in viewer cannot be set in the command line
...using --colors option.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-02-02 14:55:06 +03:00
Yury V. Zaytsev
14a82ae0ec Merge branch '2401_ai_addrconfig_optional'
* 2401_ai_addrconfig_optional:
  Ticket #2401: Make AI_ADDRCONFIG optional for RFC 3493 non-compliant systems
2011-02-01 10:06:55 +01:00
Yury V. Zaytsev
afd8ec8934 Ticket #2401: Make AI_ADDRCONFIG optional for RFC 3493 non-compliant systems
Unfortunately not all systems claiming POSIX support actually define
AI_ADDRCONFIG macro, and those who define it not always implement it
(this is indeed optional). This patch makes ftpfs only set AI_ADDRCONFIG
flag to speed up lookups if it is defined, and in this case, retry the
lookup if it was rejected due to unimplemented flags.

Based upon the code by Joe Orton <jorton@redhat.com> from APR:

Copyright (C) 2003 Red Hat, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2011-02-01 10:06:33 +01:00
Andrew Borodin
22cdf545f4 Merge branch '2305_drop_panel_old_options'
* 2305_drop_panel_old_options:
  Reorganization of "Show mini info" option.
  torben_fj_mode options was moved from [Midnight-Commander] section to [Panels] one.
  Ticket #2305: drop backward compatibility for global panels options.
2011-01-30 12:25:00 +03:00
Andrew Borodin
09021fd954 Reorganization of "Show mini info" option.
"Show mini info" checkbox was moved from the "Layout" dialog window
to the "Panel options" one. Documentation was updated.
The show_mini_info global variable was transformed to the member
of panels_options_t structure.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-30 12:23:32 +03:00
Andrew Borodin
f13778d94f torben_fj_mode options was moved from [Midnight-Commander] section to [Panels] one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-30 12:23:32 +03:00
Andrew Borodin
5341a6b53f Ticket #2305: drop backward compatibility for global panels options.
Drop backward compatibility for global panels options. These options
are read form [Panels] section, if this section exists. If this section
is abscent, default values are used.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-30 12:23:32 +03:00
Andrew Borodin
69d66dd598 Merge branch '2459_switch_to_left_panel'
* 2459_switch_to_left_panel:
  Ticket #2459: switch to the left panel after mouse click on input line history pictogram.
2011-01-24 20:42:55 +03:00
Andrew Borodin
912c62f564 Ticket #2459: switch to the left panel after mouse click on input line history pictogram.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-24 20:42:38 +03:00
Slava Zanko
6ab2753063 Merge branch '2169_fix_colors'
* 2169_fix_colors:
  Fixed parser of old colors string.
  Added description of 256colors parameter
  fail back to standard skin if 256-colors skin used on non256 colors terminal
  Fixed strange incomplete code while replace colour attribute in hash
  Use constant for describe color intensity
  Ticket #2169: Colors fixups for backward compability
2011-01-24 15:47:19 +02:00
Andrew Borodin
0f2578d45b Fixed parser of old colors string.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-24 15:46:10 +02:00
Slava Zanko
8a1c44c05d Added description of 256colors parameter
... in English and Russian man pages.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko
5b167ccc9e fail back to standard skin if 256-colors skin used on non256 colors terminal
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko
df0ae6ad0c Fixed strange incomplete code while replace colour attribute in hash
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko
3def2733dd Use constant for describe color intensity
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko
26b0623e87 Ticket #2169: Colors fixups for backward compability
* Restored old behaviour of A_BLINK attribute (intensity of background color instead of blinking foreground color);
 * Added function tty_use_256colors() for determine terminals with 256colors support;
 * Fixed background highlighting in NCurses and S-Lang.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:45:58 +02:00
Slava Zanko
1b9957058a Merge branch '1851_xdg_config'
* 1851_xdg_config:
  menu file now searched also in mc_sysconfig_dir directory
  renamed cedit.menu to mcedit.menu
  Added environment variable MC_LOG_ENABLE for specify if logging is enabled (higher priority rather then parameter from config file). Also added environment variable MC_LOG_FILE for specify file name.
  Added new function mc_always_log() for logging on early bootstrap stages
  Updated docs (man pages and comments in source code)
  Renamed variables mc_home to mc_sysconfig_dir and mc_home_alt to mc_share_data_dir for more sence
  Ticket #1851: Home config directory [xdg-user-dirs]
2011-01-21 10:07:09 +02:00
Slava Zanko
8af4c9ca7f menu file now searched also in mc_sysconfig_dir directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:44:04 +02:00
Slava Zanko
71e70a017f renamed cedit.menu to mcedit.menu
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:44:04 +02:00
Slava Zanko
4dcb7c9337 Added environment variable MC_LOG_ENABLE for specify if logging is enabled
(higher priority rather then parameter from config file). Also added environment
variable MC_LOG_FILE for specify file name.

In additional, new section [Development] now handled. For specify if logging enabled, use

[Development]
 logging = true

instead of [Midnight Commander].development.enable_logging option (WARNING: handling of
this option was removed in this commit!)

For specify file name use

[Development]
 logfile = /path/to/file

If file name isn't specified, then default value will used (~/.cache/mc.log)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
cf162ef810 Added new function mc_always_log() for logging on early bootstrap stages
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
c8982e822c Updated docs (man pages and comments in source code)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
f31863a80a Renamed variables mc_home to mc_sysconfig_dir and mc_home_alt to mc_share_data_dir for more sence
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
acbe048486 Ticket #1851: Home config directory [xdg-user-dirs]
Instead of hardcoded (via MC_USERCONF_DIR) path mc mc now used
dynamic directories specified by environment variables:
 * XDG_CONFIG_HOME - dir for config files . By default is ~/.config/mc
 * XDG_DATA_HOME - dir for some data, such as user defuned Syntax file, menu etc By default is ~/.local/share/mc
 * XDG_CACHE_HOME - dir for temp files, such as cooledit.clip etc. By default is ~/.cache/mc

This is mainstream standard already adopted by many projects.

Old settings will be migrated at first time from ~/.mc to these dirs.

See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html for more info.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-20 17:38:27 +02:00
Andrew Borodin
d21eb43152 Merge branch '2390_panel_format_init'
* 2390_panel_format_init:
  Refactoring.
  Refactoring.
  Ticket #2390: file list format of panel is intialized incorrectly
2011-01-19 13:04:29 +03:00
Andrew Borodin
1f98ee6dc7 Refactoring.
(paint_panel): removed. Sending of WIDGET_DRAW message is used instead.
(update_dirty_panels): moved from panel.c to midnight.c.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-19 13:03:54 +03:00
Andrew Borodin
57cdd0a08a Refactoring.
(restore_into_right_dir_panel): made static.
(panel_update_cols): moved from panel.[ch] to layout.[ch].
(set_display_type): minor cleanup and type accuracy.
(panel_display_t): type accuracy

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-19 13:03:54 +03:00
Andrew Borodin
c7fdc8f95b Ticket #2390: file list format of panel is intialized incorrectly
...after switch panel back from quick view or info mode to file list one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-19 13:03:39 +03:00
Andrew Borodin
86d57f2569 Fixed description of --enable-vfs-smb option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-17 14:47:02 +03:00