Commit Graph

12877 Commits

Author SHA1 Message Date
Egmont Koblinger
d350d81627 Ticket #3181: fix creating of shell wrappers.
contrib/Makefile.am: mc.sh and friends should depend on config.status.
In this case contrib/*.?sh are recreated after each rerun of configure.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-09 20:46:10 +03:00
Andrew Borodin
55fc3c9614 src/viewer/ascii.c: fix comparision between signed and unsigned.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-08 20:41:19 +03:00
Andrew Borodin
1968d57573 src/viewer/ascii.c: fix unused variables in case of --disable-charset.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-08 20:40:09 +03:00
Andrew Borodin
6b5ba76c6a Merge branch '3250_mcviewer'
* 3250_mcviewer:
  Tickets #3250, #3256: rewrite mcview's rendering and scrolling
2015-01-08 19:30:50 +03:00
Egmont Koblinger
bcb09f6ac4 Tickets #3250, #3256: rewrite mcview's rendering and scrolling
Major rewrite of mcview's parts responsible for rendering and scrolling the contents:
  * no more partial lines at the top and failure to scroll when Up or Down
    is pressed;
  * better handling of CJK characters;
  * handle combining accents;
  * improved nroff support;
  * more conventional scrolling behavior at the end of the file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-08 19:30:12 +03:00
Slava Zanko
4f6d1d1d95 Updated Spanish MAN-file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-12-28 21:49:56 +03:00
Slava Zanko
3cc1c89c1c Code indentation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-12-22 11:54:02 +03:00
Andrew Borodin
e4f3aed41f Merge branch '3339_mcedit_paste_to_clipboard'
* 3339_mcedit_paste_to_clipboard:
  Clarify description of clipboard_store and clipboard_paste options.
  Clarify flags and mode to open clipboard file.
  Ticket #3339: fix pasting from clipboard.
2014-12-22 08:08:17 +03:00
Andrew Borodin
ede5f9bad4 Clarify description of clipboard_store and clipboard_paste options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-22 08:07:43 +03:00
Andrew Borodin
dcb19a3c83 Clarify flags and mode to open clipboard file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-22 08:07:43 +03:00
Andrew Borodin
b9e06b5f2c Ticket #3339: fix pasting from clipboard.
When clipboard_paste option was set but clipboard utility was not
installed, nothing was pasted and clipboard file became empty.

Solution: reimplement pasting way using mc_pipe_t instead of my_system().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-22 08:07:43 +03:00
Andrew Borodin
b7b78319f0 Merge branch '3265_cleanup'
* 3265_cleanup: (26 commits)
  Update po/*.po files.
  Ticket #3333: fix g_error_new_valist().
  lib/glibcompat.h: add missing include of stdarg.h.
  src/filemanager/boxes.c: move static functions to the matched section.
  (sel_skin_button): simplify.
  (format_file): remove unused arguments.
  mceditor: syntax: reimplement context list using GPtrArray.
  mceditor: syntax: remove syntax_keyword_t::first member.
  mceditor: syntax: reimplement keyword list using GPtrArray.
  (edit_read_syntax_rules): minor refactoring of keyword first chars collect.
  (edit_read_syntax_rules): fix pointer tests.
  mceditor: reimplement syntax name list using GPtrArray.
  Ticket #3277: Info panel can't obtain file system statistics on Solaris.
  Recognize "Java archive data (JAR)" as zip archive.
  (mcview_offset_doz): use more.
  Sync with gnulib 2768ceb7994506e2cfba88be3b6bd13ef5440a90.
  Sync with gnulib 3ea43e02541ece750ffc6cd1dfe34195421b4ef3.
  (mcview_dimen_min): remove. Use min() macro instead.
  (mcview_get_byte_string): minor optimization.
  mcviewer: clarify support of UTF-8 codeset.
  ...
2014-12-10 13:14:14 +03:00
Andrew Borodin
42480d9579 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:13:23 +03:00
ginggs
8c1c48f61e Ticket #3333: fix g_error_new_valist().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:09:13 +03:00
Andrew Borodin
77a45cdafb lib/glibcompat.h: add missing include of stdarg.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:09:13 +03:00
Andrew Borodin
f195a75ee8 src/filemanager/boxes.c: move static functions to the matched section.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:09:13 +03:00
Andrew Borodin
2d1c6ed669 (sel_skin_button): simplify.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
7b96b56010 (format_file): remove unused arguments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
9703378726 mceditor: syntax: reimplement context list using GPtrArray. 2014-12-10 13:04:24 +03:00
Andrew Borodin
3faf53b6c3 mceditor: syntax: remove syntax_keyword_t::first member.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
8307c12bd4 mceditor: syntax: reimplement keyword list using GPtrArray.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
32cfbfaef1 (edit_read_syntax_rules): minor refactoring of keyword first chars collect.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
172196d16a (edit_read_syntax_rules): fix pointer tests.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
4dd577fbe0 mceditor: reimplement syntax name list using GPtrArray.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 13:04:24 +03:00
Andrew Borodin
7f8135d071 Ticket #3277: Info panel can't obtain file system statistics on Solaris.
(read_file_system_list): initialize variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andreas Köhler
95f97b73d1 Recognize "Java archive data (JAR)" as zip archive.
The 'file' utility determine the file type differently:

till file-5.16 - Java Jar file data (zip)
since file-5.17 - Java archive data (JAR)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
e9c5fb3048 (mcview_offset_doz): use more. 2014-12-10 12:57:47 +03:00
Andrew Borodin
0ad09aa393 Sync with gnulib 2768ceb7994506e2cfba88be3b6bd13ef5440a90.
mountlist: don't use libmount to decide on dummy/remote.

Don't use the libmount routines to determine whether a file system is
dummy or remote, as they're not currently compatible. For example the
remoteness is determined on file system type (for which the list seems
incomplete), rather than simply checking for a ':' in the device name.
Also libmount currently determines that 'tmpfs' is a dummy file system
even though it has associated storage.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
12fac096ed Sync with gnulib 3ea43e02541ece750ffc6cd1dfe34195421b4ef3.
mountlist: use /proc/self/mountinfo when available

Use libmount to propagate device IDs provided by Linux in
/proc/self/mountinfo.  This will give more accurate output when using df
in chroot'ed environments as the device IDs are not determined by stat()
which may be inaccurate within the chroot.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
3edcc3fd77 (mcview_dimen_min): remove. Use min() macro instead.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
c20e96b4bc (mcview_get_byte_string): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
60e1a06c06 mcviewer: clarify support of UTF-8 codeset.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
8f8c5217ee (mcview_get_byte_growing_buffer): some optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
56af50cb1d (mcview_get_byte): fix value returned in case of error.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
052ac838aa Add semicolon to the table of key code names.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
ce568de9b9 (name_quote): refactoring
...and related modifications.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:47 +03:00
Andrew Borodin
21fba120d0 (show_tree): minor optimization. 2014-12-10 12:57:47 +03:00
Andrew Borodin
b36adca2d1 Ticket #3265: code cleanup before 4.8.14 release.
Use MC_PTR_FREE again.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:57:46 +03:00
Andrew Borodin
9ec680a602 Merge branch '3297_preallocate_move_lose_data'
* 3297_preallocate_move_lose_data:
  Ticket #3297: don't lose file in case of preallocate space fail.
2014-12-10 12:50:28 +03:00
Andrew Borodin
a3486faac3 Ticket #3297: don't lose file in case of preallocate space fail.
Don't remove the destination file if it was retrieved incompletely
but it was already exist and appended during copy/move operation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 12:47:00 +03:00
Andrew V. Samoilov
63e8eae0b1 Update Russian and Ukrainian translations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-12-10 09:02:01 +03:00
Marco Ciampa
4d92ee740c Fixed italian tranlation 2014-11-15 20:25:44 +01:00
Andrew Borodin
c7ff7b3671 Fix editcmd__edit_complete_word_cmd test.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:44:44 +04:00
Andrew Borodin
4addae7f12 Merge branch '3247_status_msg_update_rate'
* 3247_status_msg_update_rate:
  (status_msg_init): repaint screen forced to remove previous finished dialog.
  Reduce update rate in the "Directory scanning" dialog.
  status_msg_t: reimplement delay usage.
  (mc_time_elapsed): add new function to detect elapsed time intervals.
  Ticket #3247: refactoring of status_msg engine.
2014-10-03 13:21:31 +04:00
Andrew Borodin
720f214482 (status_msg_init): repaint screen forced to remove previous finished dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:26 +04:00
Andrew Borodin
c31e413b2a Reduce update rate in the "Directory scanning" dialog.
As a result, directory scannig is faster than before.

The author of idea and initial patch is Egmont Koblinger.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
81201b3022 status_msg_t: reimplement delay usage.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
89621050e3 (mc_time_elapsed): add new function to detect elapsed time intervals.
The author of initial patch is Egmont Koblinger.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
be938c611b Ticket #3247: refactoring of status_msg engine.
Initial commit: create global timer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
99dd2ef709 Merge branch '3267_musl_libc'
* 3267_musl_libc:
  Ticket #3267: mc fails to build against musl libc.
2014-10-01 15:20:08 +04:00