Commit Graph

11726 Commits

Author SHA1 Message Date
Slava Zanko
a1719d12cd Ticket #2791: Fixed: cannot Copy/Move files with filename encoding change
Steps to reproduce:
 * run mc
 * change encoding one of panels to any different from system encoding
 * try to copy any file to panel with changed encoding

Expected result: files should be copied.

Actual result: error box here.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-29 13:33:49 +03:00
Slava Zanko
9da517a169 Fixed OGV file extention handle.
Currently OGV files handles as video.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-29 13:06:34 +03:00
Andrew Borodin
fe7d00a4c7 Merge branch '2862_tree_refresh_fix' into 4.8.1-stable
* 2862_tree_refresh_fix:
  Fix of memory leak in TreeStore::check_name destruction.
  Ticket #2862: fix syncronization with filelist and tree panels
2012-08-29 10:26:32 +04:00
Andrew Borodin
dc52b3488d Fix of memory leak in TreeStore::check_name destruction.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-29 10:25:22 +04:00
Andrew Borodin
7ede081a14 Ticket #2862: fix syncronization with filelist and tree panels
...in case of rename and delete directories.

Steps to reproduce the problem:
  * Choose "file listing" mode for one panel and "directory tree" mode for the other.
  * Perform all operations on the "file listing" panel.
  * Create a new directory -> tree view will update correctly.
  * Perform an operation, which changes this directory like rename/delete.
  * Deleted directory will still show up on the "directory tree" view.
Renamed directory will show up with the new name, but the old name will also stay there.

Minor cleanup: remove extra parenthesis.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-29 10:25:21 +04:00
Slava Zanko
53f04a6677 Merge branch '2835_treeview' into 4.8.1-stable
* 2835_treeview:
  Ticket #2835: Fixed duplicate entities in panel with 'tree view' mode
2012-08-23 13:09:46 +03:00
Slava Zanko
fb00cfc95a Ticket #2835: Fixed duplicate entities in panel with 'tree view' mode
Steps to reproduce:

 * run mc
 * go to 'F9 -> left/right panel -> Tree'

Expected result: unique directory names.

Actual result: duplicate directory names
(one name with leading slash, second directory name without leading slash).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-23 13:09:34 +03:00
Ilia Maslakov
da9eda40a9 Ticket #2859 (mcedit ctags fix)
How to reproduce:

    on sources: ctags -R .
    with tags in current dir open any file (needn't be C source or headers)
    Alt- (i.e. alt minus or Esc '-')

Current result: sigsegv

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-08-21 15:26:21 +04:00
Andrew Borodin
8f0ae5c2d5 Merge branch '2847_view_rar' into 4.8.1-stable
* 2847_view_rar:
  Ticket #2847: use unrar to view RAR archives if rar is unavailable.
2012-08-20 21:09:31 +04:00
Andrew Borodin
77105e3233 Ticket #2847: use unrar to view RAR archives if rar is unavailable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-20 21:09:19 +04:00
Sergei Trofimovich
85a2e70c46 po: added 'et' and 'de_CH' missing from translation
Reported-by: Mart Raudsepp <leio@gentoo.org>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-07-31 14:31:26 +04:00
Andrew Borodin
bf3dd9058e ru/mc.1: fix formatting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:31:00 +04:00
Andrew Borodin
4c66451f19 mc.keymap.emacs: fix of LinkSymbolicRelative keymap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:30:49 +04:00
nafraf
d5fceb9310 Ticket #2542: assembler.syntax: x86 AMD64 registers highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:29:53 +04:00
Victor Homyakov
1d82709c48 Ticket #1869: properties.syntax colors are difficult to read.
Syntax file properties.syntax used very dark color for keys (cyan is
almost invisible on default MC background), and bright color for
delimiters (yellow), which made highlighted file difficult to read.

Change keys color to yellow.
Change delimeters color to bright cyan.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:27:54 +04:00
Slava Zanko
da584eacc0 Merge branch '2838_spaces_in_rpm' into 4.8.1-stable
* 2838_spaces_in_rpm:
  Ticket #2838: Fixed 'Enter' action on a rpm file containing space character in filename
2012-07-19 12:44:00 +03:00
Slava Zanko
5484367e53 Ticket #2838: Fixed 'Enter' action on a rpm file containing space character in filename
Test case:
 * cp /path/to/any-file.rpm '/tmp/a n y - f i l e.rpm'
 * run /usr/bin/mc, go to /tmp
 * Press Enter on 'a n y - f i l e.rpm' file

Expected result: mc should be entered to RPM package as in directory

Actual result: gor errors:
Inconsistent extfs archive
error: open of /tmp/a\ failed: No such file or directory
...
error: open of e.rpm failed: No such file or directory
-r--r--r-- 1 root root 0 Jun 29 15:12 ERROR

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-19 12:16:14 +03:00
Andrew Borodin
34f03ce7cc doc/NEWS: cosmetics and forgotten #2768
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-19 11:08:56 +04:00
Slava Zanko
4df2ec9c46 Updated NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-18 11:28:48 +03:00
Slava Zanko
3a48468896 Updates translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-18 11:23:32 +03:00
Andrew Borodin
01088ce453 Revert "Try fix of compile warnings about assigned but unused variables"
This reverts commit 3d1a4ecaf7.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-18 09:43:19 +04:00
Andrew Borodin
232f8c458a Merge branch '2846_cleanup' into 4.8.1-stable
* 2846_cleanup:
  Clarify cvs dependency.
  Indent files.
  (mcview_moveto_eol): comparison of unsigned expression < 0 fixup.
  Try fix of compile warnings about assigned but unused variables
  Code cleanup: removed unused variables amd removed unnedeed code.
  Fix of f13 key handling.
  Ticket #2538: mcviewer: unused result of str_term_width1().
  src/filemanager/mountlist.c: apply mc code indentation policy.
  Sync with gnulib 06b335ade65c8fe60fee8b9e18b670bb54ed924a:
  Minor optimization and type accuracy of some editor functions.
  Fix of mult-byte characters and tabulation printing.
  Menubar: ignore GPM_UP event.
  Accuracy use of arguments of dlg_move and widget_move macros.
  Ticket #2846: code cleanup before 4.8.1.4 release.
2012-07-17 17:07:47 +04:00
Andrew Borodin
ab48f05564 Clarify cvs dependency.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:07:32 +04:00
Slava Zanko
149c29f80c Indent files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:07:32 +04:00
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