Commit Graph

11602 Commits

Author SHA1 Message Date
Andrew Borodin
3a591086da (mcview_moveto_eol): comparison of unsigned expression < 0 fixup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:32 +04:00
Slava Zanko
3d1a4ecaf7 Try fix of compile warnings about assigned but unused variables
...as returned values of functions declared with attribute
warn_unused_result [-Wunused-result].

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:07:32 +04:00
Andrew Borodin
7e6c92d893 Code cleanup: removed unused variables amd removed unnedeed code.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:32 +04:00
Andrew Borodin
7a8c3db700 Fix of f13 key handling.
ViewFile doesn't have the default key, and f13 is key for ViewRaw
which is handled in panel not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:32 +04:00
Pavel Vasilyev
04ab8ef2b7 Ticket #2538: mcviewer: unused result of str_term_width1().
And reduce size of buffer used to show file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:32 +04:00
Slava Zanko
40e612c35f src/filemanager/mountlist.c: apply mc code indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
32651f22f6 Sync with gnulib 06b335ade65c8fe60fee8b9e18b670bb54ed924a:
Write "Mac OS X" instead of "MacOS X".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
b092b10606 Minor optimization and type accuracy of some editor functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Ilia Maslakov
ef54468d68 Fix of mult-byte characters and tabulation printing.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
498ee253da Menubar: ignore GPM_UP event.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
04883518fd Accuracy use of arguments of dlg_move and widget_move macros.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
81fde30d2a Ticket #2846: code cleanup before 4.8.1.4 release.
Renamed src/editor/edit-widget.h to src/editor/editwidget.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:31 +04:00
Andrew Borodin
e3982ebd85 Update po/mc.pot file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-12 22:18:46 +04:00
Andrew Borodin
62901bbce1 Merge branch '2843_search_hotkey_conflict' into 4.8.1-stable
* 2843_search_hotkey_conflict:
  Ticket #2842: change hotkey for Normal search mode.
2012-07-10 21:01:29 +04:00
Andrew Borodin
ad1f1b56e7 Ticket #2842: change hotkey for Normal search mode.
In Search dialog in mcedit M-n hotkey was used for normal search mode.
Therefore, M-n as HistoryPrev in the input line was in accessible.

Change hotkey for normal seach mode to M-r. Use this hotkey for normal diff
mode in mcdiffviewer to unify i18n resources.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-10 21:01:16 +04:00
Andrew Borodin
5891a288c4 Merge branch '2825_solaris_statvfs_members' into 4.8.1-stable
* 2825_solaris_statvfs_members:
  Ticket #2825: obtain FS name from stat info: sync with coreutils.
2012-07-02 20:53:32 +04:00
Andrew Borodin
2140592acb Ticket #2825: obtain FS name from stat info: sync with coreutils.
src/filemanager/filegui.c does not compile on Solaris due to missing macros.
AVE_STRUCT_STATVFS_F_BASETYPE and HAVE_STRUCT_STATVFS_F_FSTYPENAME macros
are not set or even defined in config.h. configure scrips does not even
check for those members.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-02 20:53:14 +04:00
Slava Zanko
d2cc05366e Merge branch '2803_homedir_in_tests' into 4.8.1-stable
* 2803_homedir_in_tests:
  Ticket #2803: fixed bug do_panel_cd: FTBFS with --enable-tests on [kfreebsd-i386,kfreebsd-amd64,ia64,armhf]
2012-06-29 13:04:37 +03:00
Slava Zanko
e80e1f1174 Ticket #2803: fixed bug do_panel_cd: FTBFS with --enable-tests on [kfreebsd-i386,kfreebsd-amd64,ia64,armhf]
One of the panel tests fail if build environment doesn't contain the home user directory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:04:21 +03:00
Slava Zanko
b226cd737b Merge branch '2834_disable_vfs' into 4.8.1-stable
* 2834_disable_vfs:
  Ticket #2834: Fixed bug 'FTBFS with --disable-vfs'
2012-06-29 12:58:05 +03:00
Slava Zanko
5ee099d8c5 Ticket #2834: Fixed bug 'FTBFS with --disable-vfs'
Steps to reproduce:
 * ./configure --disable-vfs
 * make

Expected result: project should be builded successfully.

Actual result:
build stopped with errors:
lib/vfs/interface.c: In function 'mc_chdir':
lib/vfs/interface.c:714: error: 'struct vfs_s_super' has no member named 'path_element'
lib/vfs/interface.c:716: error: 'struct vfs_s_super' has no member named 'path_element'
lib/vfs/interface.c:717: error: 'struct vfs_s_super' has no member named 'path_element'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 12:55:25 +03:00
Andrew Borodin
f2aec47515 Merge branch '2829_copy_to_full_partition' into 4.8.1-stable
* 2829_copy_to_full_partition:
  Ticket #2829: loss of data on copy to full partition.
2012-06-26 16:21:17 +04:00
Andrew Borodin
5737723e77 Ticket #2829: loss of data on copy to full partition.
While copy/move file, the ENOSPC value of errno wasn't handled.

If destination file isn't comlete because of full partition, source file
is kept and destination one is removed unconditionally.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-26 16:21:01 +04:00
Andrew Borodin
da06e6f833 Merge branch '2827_tweak_without_charset' into 4.8.1-stable
* 2827_tweak_without_charset:
  Tests tweak and cleanup in case of --disable-charset option usage.
  Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup
  Ticket #2827: tweak and cleanup of code in case of --disable-charset option usage.
2012-06-25 17:08:38 +04:00
Andrew Borodin
ea291531d5 Tests tweak and cleanup in case of --disable-charset option usage.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 17:07:47 +04:00
Andrew Borodin
8598f5c599 Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup
...in case of build with --disable-charset option.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 17:07:47 +04:00
Andrew Borodin
057a762e9f Ticket #2827: tweak and cleanup of code in case of --disable-charset option usage.
First step: tweak vfs-related code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 17:06:48 +04:00
Sergei Trofimovich
52df780eb6 ./configure: cleanup '--enable-background' option description
Before the patch ./configure --help shown:
  --enable-background     Support for background file operations [[yes]]

After the patch:
  --enable-background     Support for background file operations [yes]

Changed whitespace: converted tabs to spaces.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-06-22 17:18:59 +03:00
Andrew Borodin
a6a0d29f7f Merge branch '2833_url_port_in_history' into 4.8.1-stable
* 2833_url_port_in_history:
  Ticket #2833: url with port was stored wrong in history.
2012-06-20 15:59:36 +04:00
Andrew Borodin
6f0eacee73 Ticket #2833: url with port was stored wrong in history.
"sh://admin@192.168.1.119:55522" was stored as
"sh://admin@192.168.1.119@192.168.1.119".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 15:59:07 +04:00
Andrew Borodin
948753be0f Don't mix mc_search_cb_ret_t and int as result of search callback.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:59:54 +04:00
Andrew Borodin
13398647ed Ticket #2795: hex search: can't find 00 (zeroes) in patterns.
Don't interpret the '0' character as end of search pattern.
Use pattern length for that.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:59:45 +04:00
Slava Zanko
0646ab6457 Merge branch '2804_test_path_cmp' into 4.8.1-stable
* 2804_test_path_cmp:
  Ticket #2804: fixed defect: path_cmp: FTBFS with --enable-tests on [powerpc,s390,s390x]
2012-06-06 16:06:22 +03:00
Slava Zanko
8540b1a996 Ticket #2804: fixed defect: path_cmp: FTBFS with --enable-tests on [powerpc,s390,s390x]
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-06 16:06:07 +03:00
Slava Zanko
d4484e0134 Merge branch '2821_wrong_second_ftp_connection' into 4.8.1-stable
* 2821_wrong_second_ftp_connection:
  Ticket #2821: Fixed defect: ftp to a second site does not work
2012-06-06 12:13:25 +03:00
Slava Zanko
15a9a74040 Ticket #2821: Fixed defect: ftp to a second site does not work
Steps to reproduce:

 * cd  ftp://ftp.gnome.org/
 * Run "cd" in the panel where the remote site is open
 * cd  ftp://ftp.kernel.org/

Actual result: The directory content from ftp.gnome.org FTP-server.
Expected results: The directory content from kernel.org FTP-server.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-06 12:13:12 +03:00
Andrew Borodin
dca2d82cd9 Merge branch '2813_panelize_limit' into 4.8.1-stable
* 2813_panelize_limit:
  Ticket #2813: number of panelized files was limited to 127.
2012-05-28 16:29:03 +04:00
Andrew Borodin
f51012bee0 Ticket #2813: number of panelized files was limited to 127.
(handle_path): restore contidion that was lost in
eeaad790ab.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-28 16:28:51 +04:00
Slava Zanko
cf29edb314 Merge branch '2800_ftpfs_dir_listing' into 4.8.1-stable
* 2800_ftpfs_dir_listing:
  Ticket #2800: Garbage directory listing in ftpfs
2012-05-18 12:37:44 +03:00
Slava Zanko
e9f3b4dfd0 Ticket #2800: Garbage directory listing in ftpfs
Just open any non-anonymous FTP connection.
2012-05-18 12:37:17 +03:00
Andrew Borodin
4619723e84 Merge branch '2808_freebsd6_build_failure' into 4.8.1-stable
* 2808_freebsd6_build_failure:
  Ticket #2808: build failure on FreeBSD 6.
2012-05-14 15:32:03 +04:00
Phil Krylov
fe91533c41 Ticket #2808: build failure on FreeBSD 6.
sys/param.h needs to be included before sys/mount.h on FreeBSD 6,
otherwise compiling fails with undefined identifier NGROUPS.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-14 15:30:58 +04:00
Egmont Koblinger
45d938c0e5 Ticket #2807: incomplete sand256 skin.
When using the sand256 skin, selected element is not highlighted in
pop-up menus.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-13 14:42:44 +04:00
Andrew Borodin
02c743c10a Merge branch '2805_relative_path_args' into 4.8.1-stable
* 2805_relative_path_args:
  Ticket #2805: fix of misenterpretation of command line arguments as relative paths.
2012-05-09 10:35:43 +04:00
Andrew Borodin
57e3921f45 Ticket #2805: fix of misenterpretation of command line arguments as relative paths.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-09 10:35:14 +04:00
Andrew Borodin
c3f67f8b94 Updated Russian translation of mc man page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-06 10:57:05 +04:00
Andrew Borodin
5a987e3efb Merge branch '2783_panel_dir_fix' into 4.8.1-stable
* 2783_panel_dir_fix:
  Ticket #2783: when right panel is active, panel paths are swapped at each mc start.
2012-05-04 18:22:02 +04:00
Andrew Borodin
cb261be463 Ticket #2783: when right panel is active, panel paths are swapped at each mc start.
How to reproduce.
1. Goto ~. Run mc. Enable autosave panels setup before exit. Save options.
2.  Open ~ dir in the left panel, / in the right one. Make right panel active.
3. Close mc.
4. With mc-wrapper, following is performed:
4.1. Run mc. Now ~ in the right panel, / in the left one.
4.2. Close mc.
4.3. Run mc. Now ~ in the left panel again, / in the right one.
4.4. ...and so on.
5. Without mc-wrapper, following is performed:
5.1. Run mc. Now ~ in both panels.

Expected behavior with current_is_left=false

1. if mc start as mc dir dir2, dir1 is opened in the left panel, dir2 in
the right one.
2. if mc starts as mc (without dir1 and dir2), active (right)  panel
contains working directory, other (left) one contains other_dir from
panel.ini.
3. if mc start as mc dir1, dir1 is opened in the left panel, right panel
contains working directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-04 18:21:05 +04:00
Andrew Borodin
de812a639c Merge branch '1437_install_scripts' into 4.8.1-stable
* 1437_install_scripts:
  Ticket #1437: install mceditor scripts as scripts not as data files.
2012-05-04 18:13:25 +04:00
Gergely Szasz
c0df27d288 Ticket #1437: install mceditor scripts as scripts not as data files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-04 18:12:58 +04:00