Commit Graph

10449 Commits

Author SHA1 Message Date
Slava Zanko
a8aa5cf678 Added definition MC_MAXFILENAMELEN for specify maximum file lenght.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-10-11 10:38:30 +03:00
Andrew Borodin
504bd05729 Ticket #2365: enhancement of quick search.
Double pressing of C-s runs the quick search using previous search pattern.

Usage example:

1. Press C-s
2. Make quick search with some pattern.
3. Stop quick search with any way.
4. Press C-s. The empty search line will be shown.
5. Press C-s again. The previous pattern will be shown and will be used
in current quick search.

English and Russian man pages are updated.

Thanks Alexey Losich (E.L.K) for the initial patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-11 10:38:29 +03:00
Slava Zanko
99149c5c54 Merge branch '1785_editor_normal_color'
* 1785_editor_normal_color:
  Some optimization and cleanup of color-related code in skin layer.
  Some optimization and cleanup of color-related code in TTY layer.
  Ticket #1785: fix of editor default color usage.
2010-10-06 12:18:17 +03:00
Andrew Borodin
a09f5f372b Some optimization and cleanup of color-related code in skin layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:55 +03:00
Andrew Borodin
4a175cbbe6 Some optimization and cleanup of color-related code in TTY layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:55 +03:00
Andrew Borodin
7f119ffbbc Ticket #1785: fix of editor default color usage.
(this_try_alloc_color_pair): if foreground and background editor colors
are undefined in syntax, the NORMAL_COLOR is used. This is wrong.
EDITOR_NORMAL_COLOR mut be used instead.

(edit_status): cleanup: remove useless color change.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:45 +03:00
username
b537fcc5a9 l10n: Updated German (de) translation to 99%
New status: 1086 messages complete with 8 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-04 01:26:35 +00:00
username
f5742f43c7 l10n: Updated German (de) translation to 99%
New status: 1085 messages complete with 9 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-10-04 01:15:44 +00:00
Slava Zanko
6a9cbcf432 Added Estonian transtation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 21:46:17 +03:00
Slava Zanko
f1c0d96e08 Added Indonesian translation PO-file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 21:25:31 +03:00
Andrew Borodin
ca1ac0b13f Merge branch '2362_wcheck_wradio_width'
* 2362_wcheck_wradio_width:
  Highlight selected item of WRadio using widget width not item width.
  Ticket #2362: width of WCheck and WRadio widgets are initialized incorrectly.
2010-09-28 20:52:32 +04:00
Andrew Borodin
329f473d32 Highlight selected item of WRadio using widget width not item width.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 20:51:57 +04:00
Andrew Borodin
64b126fabf Ticket #2362: width of WCheck and WRadio widgets are initialized incorrectly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 20:51:57 +04:00
Ilia Maslakov
3013a364b0 Merge commit 'origin/2287_persistent_bookmarks'
* commit 'origin/2287_persistent_bookmarks':
  Fix in lib/logging.c for proper work on 64-bit platforms.
  Change of bookmark drawing.
  Fixed memory leak: destroy serialization bookmarks if file position is not saved.
  Use GArray for bookmarks instead of raw array.
  Minor optimization, type accuracy, includes fix.
  Ticket #2287 (mcedit: persistent bookmarks)
2010-09-28 18:33:53 +04:00
Slava Zanko
b8836ec6c5 Fix in lib/logging.c for proper work on 64-bit platforms.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-28 14:12:32 +04:00
Ilia Maslakov
0c7f4c2494 Change of bookmark drawing.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-28 14:12:32 +04:00
Andrew Borodin
34bee19937 Fixed memory leak: destroy serialization bookmarks if file position is not saved.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 14:12:28 +04:00
Andrew Borodin
16d17edb25 Merge branch '2137_panel_encoding_without_vfs'
* 2137_panel_encoding_without_vfs:
  Get rid of some '#ifdef ENABLE_VFS' conditions.
  Fix of file panel encoding change w/o VFS support.
  Cleanup of includes in VFS sources.
  Ticket #2137: cannot change panel encoding without VFS support
2010-09-27 21:46:25 +04:00
Andrew Borodin
ec8d6f0751 Get rid of some '#ifdef ENABLE_VFS' conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:44:20 +04:00
Andrew Borodin
c36a810c09 Fix of file panel encoding change w/o VFS support.
Now --disable-vfs doesn't mean the total disabling of VFS.
With --disable-vfs option, the localfs module is built
to use the change of file panel encoding.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
48318f3e5d Cleanup of includes in VFS sources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
e1d7019ed3 Ticket #2137: cannot change panel encoding without VFS support
Initial step: fixed processing of --enable-vfs* options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:43:43 +04:00
Andrew Borodin
a3b01d593b Merge branch '1512_panel_codepage'
* 1512_panel_codepage:
  Minor changes: added doxy-comments for functions:
  Fix of VFS encoding parsing.
  Remove only supported encodings from path.
  Don't add current encoding to path again.
  Created macro VFS_ENCODING_PREFIX for "#enc:" encoding prefix.
  When cd to "..", remove encoding at the end of path.
  Added codepage member to the WPanel struct.
  Minor optimization of panel_new_with_dir().
  Load codepage list before loading of configuration.
  Don't push directory to history twice. Unified error message.
  Ticket #1512: panel encoding is not shown correctly in "Choose codepage" dialog.
2010-09-27 21:35:32 +04:00
Slava Zanko
ac85fdd350 Minor changes: added doxy-comments for functions:
- is_supported_encoding();
- panel_new();
- panel_new_with_dir();
- panel_change_encoding().

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-27 21:35:11 +04:00
Andrew Borodin
268c364292 Fix of VFS encoding parsing.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:35:11 +04:00
Andrew Borodin
5007553299 Remove only supported encodings from path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:34:40 +04:00
Andrew Borodin
2a47d77351 Don't add current encoding to path again.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:16 +04:00
Andrew Borodin
aff8e42d64 Created macro VFS_ENCODING_PREFIX for "#enc:" encoding prefix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:16 +04:00
Andrew Borodin
c0384e0b6b When cd to "..", remove encoding at the end of path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:16 +04:00
Andrew Borodin
f7ee6f8cf2 Added codepage member to the WPanel struct.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:16 +04:00
Andrew Borodin
9b51fcc0fa Minor optimization of panel_new_with_dir().
Type/value accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:16 +04:00
Andrew Borodin
3a11b04ef3 Load codepage list before loading of configuration.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:15 +04:00
Andrew Borodin
51b14f2b7b Don't push directory to history twice. Unified error message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:15 +04:00
Andrew Borodin
dfbe1130d5 Ticket #1512: panel encoding is not shown correctly in "Choose codepage" dialog.
Initial step: renamed set_panel_encoding() to panel_change_encoding().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:33:15 +04:00
Ilia Maslakov
5f81b14b3b Merge branch '2347_fish_fix'
* 2347_fish_fix:
  Removed useless g_free() calls
  Ticket #2347 (hardcoded fish scripts is outdate)
2010-09-27 14:42:58 +04:00
Ilia Maslakov
ee80601316 Removed useless g_free() calls
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-27 14:33:24 +04:00
Ilia Maslakov
47b7e46b3f Ticket #2347 (hardcoded fish scripts is outdate)
fixed: hardcoded fish scripts in lib/vfs/mc-vfs/fishdef.h

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-27 14:33:17 +04:00
Andrew Borodin
7680906d6f Merge branch '2350_buttonbar_numbers'
* 2350_buttonbar_numbers:
  Ticket #2350: show numbers for all Fx keys as for enabled as for disabled.
2010-09-20 19:45:51 +04:00
Andrew Borodin
e35af3c735 Ticket #2350: show numbers for all Fx keys as for enabled as for disabled.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-20 19:45:35 +04:00
Andrew Borodin
6680bb387d Merge branch '1490_multiscreen_fix'
* 1490_multiscreen_fix:
  Ticket #1490: fix of mult-screen engine.
2010-09-20 19:44:22 +04:00
Andrew Borodin
6cfefe7cb7 Ticket #1490: fix of mult-screen engine.
Multi-screen engine doesn't handle correctly some cases.
Example:
1. Run mc.
2. Open some file in internal editor.
3. Switch back to the file panels.
4. Open another file in internal editor. As a result, two editors are opened.
5. Close current editor. Now you are in file panels.
6. Run screen list dialog (Meta-`).
6a. The 1st editor is highlighted as current screen. This is wrong.
Current screen is file panels.
6b. Cannot switch to the opened editor in this dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-20 19:44:03 +04:00
Andrew Borodin
ed18e2d093 Use GArray for bookmarks instead of raw array.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-17 17:13:10 +04:00
Andrew Borodin
3af16693e2 Minor optimization, type accuracy, includes fix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-17 17:13:09 +04:00
Filip Sefrna
a4651d8d2b Ticket #2287 (mcedit: persistent bookmarks)
Save bookmarks of internal edit in filepos

Signed-off-by: Filip Sefrna <fsefrna@gmail.com>

Type accuracy.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-17 17:13:09 +04:00
mbouzada
7a53028565 l10n: review in the translation into Galician
New status: 1102 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-09-16 11:33:33 +00:00
Yury V. Zaytsev
139927d089 Merge branch '121_ipv4_ftp_fix'
* 121_ipv4_ftp_fix:
  Added myself to the authors list
  Fixed DATA connection initialization logic
  Refactored IPV4/IPV6 FTP connection setup code
  Fixed passive FTP connection logic
  Ticket #121: Fixed IPV4 FTP connection scheme
2010-09-15 13:49:22 +02:00
Yury V. Zaytsev
e0d1d53cbf Added myself to the authors list
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-15 13:49:03 +02:00
Yury V. Zaytsev
6586dcf78b Fixed DATA connection initialization logic
Factored out error checking from ftpfs_initconn into
ftpfs_init_data_socket and fixed the logic of the initialization of DATA
connection. Now initialization of passive connection is retried if
needed after the failure to open the socket.

Got rid of goto statements and divided the code in two parts (passive &
active). Initial state is now properly restored after the function runs.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-15 13:49:02 +02:00
Yury V. Zaytsev
a27725d7a3 Refactored IPV4/IPV6 FTP connection setup code
Miscellaneous refactoring:

    * Factored out the active IPV4/IPV6 FTP connection mode setup
      routine in a separate function (ftpfs_setup_active) to make the
      logic more clear.

    * Factored out ftpfs_init_data_socket from ftpfs_initconn in order
      to make it possible to fix the logic later on.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-15 13:49:02 +02:00
Yury V. Zaytsev
ada1848268 Fixed passive FTP connection logic
In current implementation few issues were fixed making passive
connection scheme more reliable:

    * If it's IPV4, try PASV first, as some servers and ALGs get
      confused by EPSV, and only then EPSV as a fallback

    * When trying PASV or EPSV, actually try to connect to the provided
      port and if the connection fails, still try the next method

    * PASV and EPSV response parsing code was factored out in separate
      routines for clarity

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-15 13:49:02 +02:00