Avoid limitation of file name length.
(vfs_dirent): redefined to use instead of standard "struct direct"
to hold file name of any length.
(vfs_class::readdir): return newly allocated vfs_dirent structure.
Related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This bug was introduced in 2e734e5618.
(dlg_handle_key): fallback to dialog_map if shortcut is not defined in
filemanager/editor/viewer/diffviewer key map.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This can be used for running a clipboard script (from a virtual terminal)
that autodetects (or requests from sytemctl) the proper values of DISPLAY
and XAUTHORITY without the need of exporting these variables to the whole
virtual terminal session.
(clipboard_file_to_ext_clip): don't test DISPLAY environment variable.
(clipboard_file_from_ext_clip): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4077_extfs_leading_got_slash:
tests: extfs/zip: file names with leading space or dash.
Revert "urar extfs: don't start path with ./ in file list."
extfs/uzip: add leading ./ to file name
Ticket #4077: extfs: handle file names started with dash or space.
* (extfs_open_archive): skip leading ./ in file names. extfs plug-ins
are added leading ./ to handle files with name started with space.
* (extfs_cmd): skip leading ./ added in name_quote(). ./ is added to
handle files with name started with dash.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4103_cleanup: (23 commits)
src/subshell/common.c: clarify author list.
iso9660.in: use grep directly.
src/filemanager/chattr.c: support dax attribute.
m4.include/gnulib/stat-size.m4: shorten https://lists.gnu.org/archive/html/... link.
m4.include/gnulib/fsusage.m4: produce more regular configure output.
src/filemanager/find.c: use g_get_real_time() instead of gettimeofday().
mc_timer: use g_get_real_time() instead of gettimeofday().
(do_view_cmd): rename parameter.
(view_file): rename parameter in function declaration.
(show_editor_viewer_history): fix call of view_file().
Remove one-line header files.
Sync with gnulib 85d1d48f6fa89de6a5de9e7794bda3255f0f32aa.
Remove Cray support.
Optimize comparisions in file sort functions.
src/filemanager/boxes.c: rename variables.
WPanel: reorder fields.
WPanel: rename "panel_name" fileld to "name".
WPanel: change type of "active" and "dirty" fields to gboolean.
WPanel: use structure for quick search fields.
WPanel: use structure for directory history fields.
...
Sync with gnulib 2a3dbe99a2aeb058ecb033d7d830e6600e16c91c.
/archive/html/ part can be replace with /r/.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 875dff5812cb9de949727e1aa399a06b07a886a9.
Remove AC_MSG_CHECKING without corresponding AC_MSG_RESULT.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Move declaration of {advanced_chown,chattr,chmod,chown}_cmd() into cmd.h.
Delete src/filemanager/{achown,chattr,chmod,chown}.h
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix quoting of AC_LANG_PROGRAM arguments.
* m4.include/gnulib//mountlist.m4 (gl_MOUNTLIST): Quote the
AC_LANG_PROGRAM arguments through [[...]].
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
call 'file' with -z switch to enable getting the type of compressed files,
and use that capability extensively.
the /logs?/ hacks in ext.d/text.sh need to remain for the time being, as
file -z doesn't handle .lz4 files as encapsulated content.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4126_persistent_subshell_command_buffer_fixups:
Disable subshell cursor position translation for bash v5+.
Optimize bash cursor position translation.
Make query of subshell command buffer leading-dash-safe.
Prevent word-splitting of the subshell command buffer.
Fixup FISH subshell setup.
Do not avoid big stack allocations.
Ticket #4126: fixups to persistent subshell command line buffer support.
the changelog clearly states that the position is now returned as a
character offset.
amends ff0fc17a.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
when the command buffer started with a valid option to the "echo"
command, weird things would happen. use "printf" instead, which doesn't
have this problem. this affected only the bash and zsh code paths.
amends ff0fc17a.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
this avoids inadvertent whitespace normalization (compression and
trimming), which is annoying and additionally invalidates the cursor
position.
for bash and zsh that meant quoting the variable expansion, while for
fish it meant removing the pointless indirection through echo.
for bash we had to introduce an indirection through a function, as there
is apparently no way to get the quoting right inside the binding. zsh
already had such an indirection - maybe for the same reason?
amends ff0fc17a.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
move binding commands out of the fish_prompt function definition, use
consistent command separators, and remove excess backslashes from the
bindings.
amends ff0fc17a.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4127_mc.ext_improve:
Relax mc.ext matching rules for makefiles.
Replace xmms with audacious in ext.d/shound.sh.
Ticket #4127: several improvements to mc.ext and syntax highlighting.