Andrew Borodin
b6c8f319e9
mc.lib: [terminal:linux] is same as [terminal:console].
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
9149a6d132
(delete_region, copy_region): rename arguments.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
529c7d70dd
src/editor/editwidget.c: grammar.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
19591c4475
mceditor: use MB_LEN_MAX constant.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
a147082c73
(string_file_name): use mc_g_string_copy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
8010b08584
(complete_engine, insert_text): don't calculate text length twice.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
e71972003e
lib/strutil/strutilutf8.c: use MB_LEN_MAX constant.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
ccbac47385
Remove get_process_stats() test.
...
The GLib API is used for measurement of time intervals.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
4e8b00f003
Use g_get_monotonic_time() instead of g_get_real_time().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
31008bcc8e
(learn_key): return NULL if buffer is empty.
...
(learn_button): simplify tests: seq is never empty here.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
0e09fc3088
(learn_key): use g_get_real_time () to simplify time comparision.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
254a311cc0
(get_key_code): use g_get_real_time () to simplify time comparision.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
8885987f1d
(xmouse_get_event): use g_get_real_time () to simplify time comparision.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
40675220c1
lib/tty/key.c: use named constants for time intervals.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
a4adc09509
(file_mask_dialog): indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
62d2580302
Reimplement compiler options checking.
2021-11-21 15:00:39 +03:00
Andrew Borodin
c32c4b316b
lib/util.c: remove unneeded include.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
93a4ecc11e
lib/keybind.h: remove unneeded includes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
eefc7c1275
(copy_file_file_display_progress): rename argument to make it clearer.
...
(copy_file_file): rename variable to make it clearer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
e8e3204e61
(copy_file_file): don't call g_get_real_time() twice...
...
in case of successful copying of file content.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
bb1ab8488b
(copy_file_file_display_progress): don't calculate BPS twice.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
78df2f5b56
(progress_update_one): don't call g_get_real_time() twice at first time.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
437211791f
file operations: use g_get_real_time() instead of gettimeofday().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
d04abc5a76
sftpfs: refactoring.
...
Merge init.c, vfs_class.c, and vfs_subclass.c to sftpfs.c.
Rename files:
init.h -> sftpfs.h.
Rename variables:
sftpfs_class -> vfs_sftpfs_class.
Rename functions:
sftpfs_cb_is_equal_connection -> sftpfs_archive_same
sftpfs_cb_init_connection -> sftpfs_new_archive
sftpfs_cb_open_connection -> sftpfs_open_archive
sftpfs_cb_close_connection -> sftpfs_free_archive
to be consistent with other VFSes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
4fce4fa7c3
sftpfs: trivial optimization.
...
* (sftpfs_opendir): call sftpfs_fix_filename() before loop.
* (sftpfs_mkdir): likewise.
* (sftpfs_rmdir): likewise.
* (sftpfs_open_file): likewise.
* (sftpfs_stat_init): likewise.
* (sftpfs_readlink): likewise.
* (sftpfs_utime): likewise.
* (sftpfs_chmod): likewise.
* (sftpfs_unlink): likewise.
* (sftpfs_rename): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:39 +03:00
Andrew Borodin
6623a9014f
(panel_operate): update panel content before screen refresh.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 15:00:33 +03:00
Andrew Borodin
022c3d2f94
Refactoring of file operations.
...
(copy_cmd, copy_cmd_local, rename_cmd, rename_cmd_local, delete_cmd,
delete_cmd_local): move same code to panel_operate(), make inline.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:57:43 +03:00
Andrew Borodin
d410af27c0
(start_search): ret rid of extra screen redraw.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:57:43 +03:00
Andrew Borodin
cac689a81a
Get rid of extra update of mini info.
...
(stop_search): don't update mini info if quick search is incative.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:57:43 +03:00
Andrew Borodin
d19b247c6d
Ticket #4384 : fix accelerator conflict in Left/Right menu.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:57:43 +03:00
Andy Alt
b71b7ea9d3
Ticket #4270 : code clean up before 4.8.28 release.
...
MidnightCommander/#165: doc/README: grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:57:43 +03:00
Andrew Borodin
b8262f22e8
Merge branch '3887_endianness'
...
* 3887_endianness:
Ticket #3887 : (handle_console_linux): fix endianness bug.
2021-11-21 14:50:39 +03:00
Andrew Borodin
a3d323c6b3
Ticket #3887 : (handle_console_linux): fix endianness bug.
...
handle_console_linux() passes the address of action to write() and intends
to send one byte of data (the LSB). On LE this works, but one BE machines
this sends the MSB which is always zero. Fix this by assigning the value
first to a char type, and use that instead.
Thanks Sven Schnelle <svens@stackframe.org> for the original patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-11-21 14:49:46 +03:00
Andrew Borodin
53143b08a0
Merge branch '4150_mcview_MC_EXT_BASENAME'
...
* 4150_mcview_MC_EXT_BASENAME:
Ticket #4150 : support file/dir macros for standalone mcviewer.
2021-11-14 19:59:50 +03:00
Andrew Borodin
f1e2f0e93d
Ticket #4150 : support file/dir macros for standalone mcviewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-10-31 09:49:45 +03:00
Ulya Trofimovich
044cd3d806
Ticket #4298 : misc.sh; fix view for files
...
...on systems that have no /bin/cat (like NixOS).
When opening .diff or .patch files mcview invokes /bin/cat. NixOS has no
/bin/cat (the path to cat looks like /run/current-system/sw/bin/cat).
However cat is still in PATH, so replace /bin/cat with just cat. This
should not affect other systems as /bin should normally be in PATH.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-10-30 19:10:11 +03:00
Andrew Borodin
8b79bfe32d
(free_erase_list): test queue before free.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-10-02 11:41:07 +03:00
Marco Ciampa
7871db5258
Added autogenerated mc-version.h to the list of git-ignored files
2021-09-29 09:49:03 +02:00
Marco Ciampa
f5bcd63921
Updated Italian translation
2021-09-29 09:45:30 +02:00
Andrew Borodin
6f676d0667
Merge branch '1_smbfs_remove'
...
* 1_smbfs_remove:
Update po/*.po files.
Ticket #1 : remove SMB suport.
2021-09-26 10:09:15 +03:00
Andrew Borodin
037c14d339
Update po/*.po files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-26 10:07:40 +03:00
Andrew Borodin
89d8fa4ac1
Ticket #1 : remove SMB suport.
...
The mc's built-in samba library which is used to access data across
smb links is taken from an old samba version.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-26 10:03:49 +03:00
Andrew Borodin
30fbbe75b8
Merge branch '4285_sftp_symlink_timestamps'
...
* 4285_sftp_symlink_timestamps:
(sftpfs_chmod): set permissions only, don't touch other attributes.
Ticket #4285 : sftp: timestamps are not preserved for uploaded symlink.
2021-09-26 09:57:39 +03:00
Andrew Borodin
c3ba19b422
(sftpfs_chmod): set permissions only, don't touch other attributes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-11 20:34:21 +03:00
Andrew Borodin
8e5f8255e1
Ticket #4285 : sftp: timestamps are not preserved for uploaded symlink.
...
* (sftpfs_symlink): don't call sftpfs_fix_filename() for target file
bacause it breaks symlink: relative symlinks became an absolute one.
* (sftpfs_utime): set timestamps only, don't touch other attributes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-11 20:24:30 +03:00
Andrew Borodin
899c926fcb
Merge branch '4281_fish_upload_link'
...
* 4281_fish_upload_link:
Ticket #4281 : fish upload: symbolic link along with its target.
2021-09-11 09:38:08 +03:00
Andrew Borodin
399f25fe9f
Ticket #4281 : fish upload: symbolic link along with its target.
...
fish/utime: use `touch -h` to change the times of the link itself
rather than the file that the link points to. -h implies -c
and thus will not create any new files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-11 09:37:55 +03:00
Andrew Borodin
130e50ec89
Merge branch '4287_slow_move'
...
* 4287_slow_move:
Ticket #4287 : file move across filesystems is slow.
2021-09-06 21:33:03 +03:00
Andrew Borodin
1b39025049
Ticket #4287 : file move across filesystems is slow.
...
src/filemanager/file.c: reimplement erase_list using GQueue instead of
GSlist to get rid of walk each time through the whole linked list.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-05 11:39:42 +03:00
Michael Stilkerich
4973eb00bb
Ticket #4286 : mcedit: fix errors in syntax definitions.
...
Fixed:
- use of "grey" instead of "gray" (same for "lightgray");
- use of space in keywords;
- typos.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-09-04 18:36:27 +03:00