Commit Graph

10410 Commits

Author SHA1 Message Date
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
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
Yury V. Zaytsev
a402ebc981 Ticket #121: Fixed IPV4 FTP connection scheme
* Fixed endianness issue introduced by IPV6 patch, which prevented
      active connections to be established via PORT mechanism.

      FTP server always expects to see the port broken down into bytes
      in network byte order, so the transformation to host byte order is
      only needed when using EPRT.

    * Some IPV4 FTP servers and FTP ALGs / NATs with connection tracking
      become confused when you try to use EPSV or EPRT instead of PASV or
      PORT respectively.

      This commit changes current FTP connection scheme: if we deal with
      an IPV4 host, instead of first trying to use EPRT, first try to
      use PORT and only if it fails try EPRT as a fallback.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-15 13:49:02 +02:00
Oleksandr Natalenko
0406a18dd4 l10n: Updated Ukrainian (uk) translation to 100%
New status: 1094 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-09-15 08:35:57 +00:00
Andrew Borodin
4a52b64088 Merge branch '2333_hangup_after_exit'
* 2333_hangup_after_exit:
  Ticket #2333: MC hangs after exit
2010-09-14 17:05:58 +04:00
Andrew Borodin
cde7a850d5 Ticket #2333: MC hangs after exit
On some FreeBSD servers with tcsh shell the following bug occurs
sometimes: trying to exit from mc it hangs. More detail:
1. run mc, press F10, press Enter - hangs
2. run mc, press F10, choose Command->File->Exit - NOT hangs.

This hang up is a result of subshell_chdir() call after subshell
close (after exit_subshell() call). When the F10 key is handled in
dlg_try_hotkey() function, the do_select_widget() is called. As a
result, the WIDGET_FOCUS message is sent to the active panel and panel
calls subshell_chdir(). But subshell is already closed at this
moment and midnight_dlg is in DLG_CLOSED state.

The solution: don't send DLG_DRAW, DLG_FOCUS and DLG_UNFOCUS messages to
the inactive dialog (that is not in DLG_ACTIVE state). Since dialog is
about destroying (in DLG_CLOSED state) or not visible in screen (in
DLG_SUSPENDED state) it is not needed in any visual changes.

Thanks Tempread for investigation of the problem root.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-14 15:56:03 +04:00
mbouzada
7fd7f2a533 l10n: Updates to Galician translation
New status: 1102 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-09-14 08:49:53 +00:00
mbouzada
7e191096c5 l10n: Updates to Galician translation
New status: 1068 messages complete with 3 fuzzies and 31 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-09-14 11:23:46 +04:00
Piotr Drąg
7593829aa1 l10n: Updated Polish (pl) translation to 100%
New status: 1094 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
2010-09-14 11:23:46 +04:00
Mikhail S. Pobolovets
dbf74727ca Ruby syntax fix
* added highlight for ruby symbols

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-13 09:54:14 +03:00
Mikhail S. Pobolovets
d9ac6384b5 Ruby syntax update
* fixed include? keyword
    * fixed $ in the end of regexps

Valid highlighting of regexps can't be done with syntaxcolor.
Ruby uses '/' to divide numbers and for defining regexps.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:57:40 +03:00
Mikhail S. Pobolovets
9cd7a04b54 CSS syntax update
* fixed some bugs
    * removed duplicates
    * added some new keywords

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-09-12 20:26:43 +03:00
Yury V. Zaytsev
7133f4bb6d Merge branch '2344_fix_line_jump'
* 2344_fix_line_jump:
  Ticket #2344: Fix line jump when started as editor
2010-09-09 12:49:57 +02:00
Yury V. Zaytsev
73ee1d04d3 Ticket #2344: Fix line jump when started as editor
Two common line jump protocols supported by mc are:

    * mcedit +lineno file
    * mcedit file:lineno

Unfortunately, in the implementation of the first protocol, if line
number equals to zero, which is often used to position the cursor at the
beginning of the file, it is completely ignored and file "+0" is opened
instead.

This patch fixes aforementioned issue.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-09 10:29:32 +02:00
Andrew Borodin
258c70c02b NEWS for 4.7.4 release.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 21:09:03 +04:00
Andrew Borodin
d8cac8a093 Updated all PO files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 21:08:57 +04:00
Slava Zanko
b88a9148b5 Merge branch '2237_man_pages'
* 2237_man_pages:
  Ticket #2253: fixed formatting of DONT_SPLIT option.
  Fixed Russian man page.
  Fixed a typo and bad grammar in man2hlp.
  Fixed man2hlp warnings by renaming conflicting LANG variable to HLP_LANG.
  Now date of modification is automatically filled in header of man page.
  Fixed typos in docs.
  Performed a RegExp mass replacement in the manual pages of
  Typo fixes (English man page).
  Ticket #2237: Automatic date and version substitution for man pages
2010-09-06 17:37:52 +03:00
Andrew Borodin
1ed674f124 Ticket #2253: fixed formatting of DONT_SPLIT option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 17:37:28 +03:00
Andrew Borodin
76391c7c17 Fixed Russian man page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 17:37:28 +03:00
Yury V. Zaytsev
acda372b4c Fixed a typo and bad grammar in man2hlp.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:28 +03:00
Yury V. Zaytsev
8430219c95 Fixed man2hlp warnings by renaming conflicting LANG variable to HLP_LANG.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-06 17:37:28 +03:00
Slava Zanko
19b8c17013 Now date of modification is automatically filled in header of man page.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-06 17:37:28 +03:00
Yury V. Zaytsev
8bc933ac6e Fixed typos in docs.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:28 +03:00
Yury V. Zaytsev
8a692f9682 Performed a RegExp mass replacement in the manual pages of
([^\\])-([A-z])

with

    \1\\\-\2

to fix improperly escaped dashes (minus signs).

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:27 +03:00
A. Costa
fba5d31930 Typo fixes (English man page).
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:27 +03:00
Yury V. Zaytsev
f32184fd25 Ticket #2237: Automatic date and version substitution for man pages
Currently the date and the version of Midnight Commander in the man
pages has to be changed manually every release. This is being done
sporadically and as the result, the man pages shipped for e.g. 4.7.2
release contain the 4.7.0-pre1 signature, which is quite confusing.

With this patch, the version is substituted with @DISTR_VERSION@ for all
the man pages  and the date is automatically updated to the English man
pages. Other man pages still have the manually updated date of the last
translation.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:27 +03:00
Andrew Borodin
9f2ceeea7a Merge branch '2316_code_cleanup'
* 2316_code_cleanup:
  Ticket #2337: Check for inode count instead of block count
  Fixed formatting after autoformatting.
  Don't reset use_subshell variable twice.
  Function movements.
  Removed panel command wrappers.
  Ticket #2316: code cleanup before 4.7.4 release.
2010-09-06 15:34:23 +04:00
Sven Wegener
436af5f1ce Ticket #2337: Check for inode count instead of block count
This correctly prevents division by zero.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
9f702e82ef Fixed formatting after autoformatting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
e967125920 Don't reset use_subshell variable twice.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
72ce32f518 Function movements.
The following functions:

directory_history_add
directory_history_next
directory_history_prev
directory_history_list
get_parent_dir_name
_do_panel_cd
do_panel_cd

were moved from main.[ch] to screen.c and panel.h.

Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
d5447550f6 Removed panel command wrappers.
These functions were used before implementation of panel key bindings.
Now these wrappers are unneded.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
74326ecbdc Ticket #2316: code cleanup before 4.7.4 release.
Fixed hotkey confilct in 'Confirmation' dialog window.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 15:33:38 +04:00
Andrew Borodin
0fd2b55f34 Merge branch '2324_edit_syntax_select'
* 2324_edit_syntax_select:
  Ticket #2324: fix of manually changing syntax definition.
2010-09-06 13:18:31 +04:00
Andrew Borodin
37b49b3920 Ticket #2324: fix of manually changing syntax definition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-06 13:17:52 +04:00
Andrew Borodin
dcaf71004a Merge branch '2320_regexp_replace'
* 2320_regexp_replace:
  Ticket #2320: fixed regexp replacement in editor.
2010-09-06 13:08:40 +04:00
Andrew Borodin
6598729ce5 Ticket #2320: fixed regexp replacement in editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 13:08:21 +04:00
Ilia Maslakov
dc9795108b Merge branch '2277_mcdiff_warnings_fix'
* 2277_mcdiff_warnings_fix:
  Ticket #2277 (mcdiff cleanup)
2010-09-03 17:40:19 +00:00
Ilia Maslakov
c17826876c Ticket #2277 (mcdiff cleanup)
mcdiff: some warnings fixed.

    search.c: In function ‘mcdiffview_do_search_backward’:
    search.c:183: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

    ydiff.c: In function ‘cvt_fget’:
    ydiff.c:1653: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

    ydiff.c: In function ‘dview_execute_cmd’:
    ydiff.c:3085: warning: overflow in implicit constant conversion [-Woverflow]

    fixed mcdiff search.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-03 17:33:59 +00:00
Andrew Borodin
c7f4307a15 Merge branch '2311_edit_about'
* 2311_edit_about:
  Ticket #2311: reimplementation of editor 'About' window.
2010-09-03 19:37:38 +04:00
Andrew Borodin
62052016a5 Ticket #2311: reimplementation of editor 'About' window.
mcedit version number and button are centered now in 'About' window.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-03 19:37:20 +04:00