Commit Graph

12396 Commits

Author SHA1 Message Date
Andrew Borodin
9e4d279885 lib/strutil/strutilascii.c: cosmetics and minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:01:05 +04:00
Andrew Borodin
5b91108b3c lib/strutil/strutil.c: cosmetics and minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:01:05 +04:00
Andrew Borodin
afca0e1443 (eval_marks): change return type to gboolean, minor refactoring and related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:01:05 +04:00
Andrew Borodin
4d595c2002 (regex_check_type): change type of have_type parameter and related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:01:05 +04:00
Andrew Borodin
0b0cc72ec8 Ticket #3035: code cleanup before 4.8.10 release.
Remove fi_FI and it_IT hints.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-23 14:01:05 +04:00
Andrew Borodin
f3037dbb79 Merge branch '3036_sftp_wrong_password_crash'
* 3036_sftp_wrong_password_crash:
  Ticket #3036: fix crash after entering a wrong SFTP password.
2013-07-22 20:59:40 +04:00
Andrew Borodin
2b3be1dfc6 Ticket #3036: fix crash after entering a wrong SFTP password.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-22 20:59:00 +04:00
Andrew Borodin
5fdd1027f5 Merge branch '3040_mcedit_fd_leak'
* 3040_mcedit_fd_leak:
  Ticket #3040: (check_file_access): fix file descriptor leak.
2013-07-15 15:31:00 +04:00
Andrew Borodin
4f1801ca11 Ticket #3040: (check_file_access): fix file descriptor leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-14 21:38:23 +04:00
Andrew Borodin
675ee47aa6 Merge branch '3034_zip_in_tar'
* 3034_zip_in_tar:
  Ticket #3034: cannot enter into zip archive in tar one.
2013-07-12 14:11:34 +04:00
Andrew Borodin
8cb80dcc9c Ticket #3034: cannot enter into zip archive in tar one.
How to reproduce:
1. Create archive: touch a.txt && zip a.zip a.txt && tar cf a.tar a.zip
2. Press "Enter" on a.tar to enter into archive. Success.
3. Press "Enter" on a.zip to enter into archive. Nothing happens.

(regex_check_type): don't remove temporary file before read data from it.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-12 14:09:46 +04:00
Slava Zanko
e6eddc4ab7 Remove fi_FI and it_IT translations
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 13:45:55 +03:00
Slava Zanko
b8e7ace9ac Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 13:09:37 +03:00
Slava Zanko
bab36b9006 Remove an include duplicate after runing maint/utils/find-dup-includes/runme.sh
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 12:58:23 +03:00
Slava Zanko
44db9f0a5a Updated hints translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 12:52:02 +03:00
Slava Zanko
584b29ae67 Updated translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 12:51:30 +03:00
Slava Zanko
68edfcb47b sync-transifex: fix pathes for calculating MC source root
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-10 12:50:42 +03:00
Andrew Borodin
03a9577885 Merge branch '2245_mcedit_autocompletion_fix'
* 2245_mcedit_autocompletion_fix:
  Ticket #2245: mcedit: entire file wordcompletion failed
2013-07-10 09:25:40 +04:00
Andrew Borodin
2031bbb506 Ticket #2245: mcedit: entire file wordcompletion failed
...if word to be comleted is begun from begin of file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-10 09:25:10 +04:00
Slava Zanko
da4f7be895 Merge branch '3027_xorriso'
* 3027_xorriso:
  Ticket #3027: use xorriso (if exists) for writing into ISO images
2013-07-09 20:56:16 +03:00
Slava Zanko
1ca5bd3e6e Ticket #3027: use xorriso (if exists) for writing into ISO images
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-09 20:55:54 +03:00
Slava Zanko
b3bc7a077e Merge branch '2992_strverscmp'
* 2992_strverscmp:
  Ticket #2992: mc fails to link when system lib does not contain strverscmp
2013-07-09 13:54:20 +03:00
Slava Zanko
0013adeeba Ticket #2992: mc fails to link when system lib does not contain strverscmp
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-09 13:44:51 +03:00
Andrew Borodin
86fc45dd40 Merge branch '3021_segfault_unowned_temp_dir'
* 3021_segfault_unowned_temp_dir:
  Ticket #3021: mc segfaults when mc's tempdir doesn't belong to the correct user.
2013-07-06 14:57:21 +04:00
Andrew Borodin
e7fd5bcaa4 Ticket #3021: mc segfaults when mc's tempdir doesn't belong to the correct user.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-06 14:56:38 +04:00
Andrew Borodin
1db4f7bb52 Merge branch '3015_unrar5'
* 3015_unrar5:
  Ticket #3015: extfs vfs: support unrar-5.
2013-07-06 13:24:25 +04:00
Andrew Borodin
62d43659bd Ticket #3015: extfs vfs: support unrar-5. 2013-07-06 13:22:11 +04:00
Andrew Borodin
47b122d9a5 Merge branch '3025_race_cond_reate_tmp_dir'
* 3025_race_cond_reate_tmp_dir:
  Ticket #3025: race condition when creating temporary directory.
2013-07-05 21:01:54 +04:00
Amadeusz Sławiński
33c47b5734 Ticket #3025: race condition when creating temporary directory.
When there's no mc-tmpdir and a user tries to start two mc sessions
simultaneously, sometimes (in one out of ten attempts on my machine) one
mc session emits the following error message:

Cannot create temporary directory /tmp/mc-lars: File exists (17)
Temporary files will be created in /tmp
Press any key to continue...

Steps to reproduce:

# rm /tmp/mc-$(whoami) -rf
# uxterm -e mc & uxterm -e mc

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 20:58:41 +04:00
Slava Zanko
ff211e5fd3 Merge branch '2006_more_info_about_iso'
* 2006_more_info_about_iso:
  Ticket #2006: Display additional info while viewing (F3) *.iso files
2013-07-05 15:22:17 +03:00
Slava Zanko
cb57614b7a Ticket #2006: Display additional info while viewing (F3) *.iso files
Viewing (F3) on ISO image produce more information about image.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-07-05 15:21:59 +03:00
Andrew Borodin
c6844e1918 (edit_buffer_read_file): fix comparision between signed and unsigned integers.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 13:28:21 +04:00
Andrew Borodin
2b0c66bc1f Merge branch '1743_mcedit_file_size'
* 1743_mcedit_file_size: (25 commits)
  Refresh po/*.po files.
  Indentation.
  Add threshold for file size.
  Drop limit of edited file size.
  Add functions to transform string to unsigned integer:
  Refactoring of functions that operate with editor buffer.
  Refactoring: rename functions of getting BOL and EOFL:
  Refactoring: move members from WEdit to edit_buffer_t and rename related functions:
  (get_paragraph): refactoring.
  A lot of type accuracies.
  (edit_indent_width, edit_insert_indent): move to wordproc.c and make static.
  Rename edit_buffer_t members.
  Use GPtrArray to store editor buffers.
  (edit_cursor_move): refactoring using editor buffer API.
  New editor buffer API to delete character at cursor position.
  New editor buffer API to insert character at cursor position.
  (edit_buffer_write_file): refactoring: return number of written bytes.
  (edit_buffer_write_file): new editor buffer API.
  (edit_buffer_read_file): refactoring: return number of read bytes.
  (edit_buffer_read_file): new editor buffer API.
  ...
2013-07-05 09:20:58 +04:00
Andrew Borodin
6fff56c2f6 Refresh po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:20:40 +04:00
Andrew Borodin
c5924af3c4 Indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:20:40 +04:00
Andrew Borodin
dcf78f5382 Add threshold for file size.
Add "editor_filesize_threshold" ini option to ask open file if it size
is larger than specified threshold. Supported string value formats are:
"640000000", "64000K", "64M". Default value is 64M.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:20:40 +04:00
Andrew Borodin
c6d6aaedd5 Drop limit of edited file size.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
ccf82ada12 Add functions to transform string to unsigned integer:
* (xstrtoumax): from gnulib.
 * (parse_integer): from coreutils (dd.c).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
25924c77d9 Refactoring of functions that operate with editor buffer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
506b3d4eee Refactoring: rename functions of getting BOL and EOFL:
edit_bol() -> edit_buffer_get_bol()
edit_eol() -> edit_buffer_get_eol()

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
32ffd98e87 Refactoring: move members from WEdit to edit_buffer_t and rename related functions:
WEdit::last_byte -> edit_buffer_t::size
WEdit::total_lines -> edit_buffer_t::lines
WEdit::curs_line -> edit_buffer_t::curs_line

edit_count_lines() -> edit_buffer_count_lines()

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
253d27b1a3 (get_paragraph): refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:03 +04:00
Andrew Borodin
c5d35ac93b A lot of type accuracies.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
c466b18f67 (edit_indent_width, edit_insert_indent): move to wordproc.c and make static.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
ca26181f5d Rename edit_buffer_t members.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
7facc1da05 Use GPtrArray to store editor buffers.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
60fe43d932 (edit_cursor_move): refactoring using editor buffer API.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
ed8c80f48d New editor buffer API to delete character at cursor position.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
e335bba08c New editor buffer API to insert character at cursor position.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00
Andrew Borodin
706257a47d (edit_buffer_write_file): refactoring: return number of written bytes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-07-05 09:09:02 +04:00