The following example breaks highlighting to the end of file:
local a = "\\"
local b = 1
...
Added escape handling for simplest cases both for
single-quoted and double-quoted literals:
'\\', '\n' (and similar), '\d', '\dd', '\ddd'
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Seems that the previous patch was incomplete. Especially the "Delete file?" dialog
sucks because the colors of the Yes and No buttons are the same, it's only the mouse
cursor that shows which one is active.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
After #2361, smb vfs module doesn't work at all.
The error message "Cannot chdir to ..." raises after hostname enter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Since content of keymap file is ASCII-only and case insensitive,
don't use some utf8-manipulation: g_ascii_strcasecmp() is used
instead of str_casecmp().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2338_free_space_calculation:
src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Ticket #2338: use uintmax_t for file system infomation
added ".." at the top of file list (after external panelization)
added ".." at the top of file list (after 'find' panelization)
disable ctrl-r (refresh) for panelized content
added menu entry Left\Panelize, to restore panelized panel
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Minor changes in goto_parent_dir()
many code optimization
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
little fixup
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
When platform does not define HAVE_POSIX_FALLOCATE we get this error:
CC vfs.lo
../../../../mc/lib/vfs/vfs.c: In function 'vfs_preallocate':
../../../../mc/lib/vfs/vfs.c:613:12: error: 'dest_desc' undeclared (first use in this function)
../../../../mc/lib/vfs/vfs.c:613:12: note: each undeclared identifier is reported only once for each function it appears in
../../../../mc/lib/vfs/vfs.c:610:22: warning: unused parameter 'dest_vfs_fd' [-Wunused-parameter]
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
For FTP servers, that do not send ".." in directory listing, mc adds one space to the name of every file and directory. Attached patch should fix this problem.
Steps to reproduce:
cd /#ftp:ftp.symantec.com
Expected result:
Correct list of files/directories
Actual result:
File/directory names with leading spaces
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Some FTP servers like ftp.symantec.com and download.nvidia.com
do not support parameters in LIST command. They don't fail on
LIST -la ... just ignore them. So mc shows only root directory.
Always.
Steps to reproduce:
cd /#ftp:ftp.symantec.com/public
Expected result:
Content of /public/ directory shown.
Actual result:
Content of root / directory shown instead.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2614_word_completion:
Fixed searching the start of word
Code optimization: avoid lot of calls for alloc/free memory in cycle.
Current word under cursor doesn't included in completion list, if same word already exists in text.
Ticket #2614: Editor word completion should ignore the current word
Currently the completion considers the word the cursor is on as a possible
completion, but this is quite annoying if the cursor is inside the word.
Such completion effectively inserts the rest of the word one more time, so
CamelCase becomes CamelCaseCase. If this is the only match, it completes
automatically, which is even worse. The current word shouldn't be used
for completion.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
If we copy the files to the partition mounted with sshfs,
the default checkbox "preserve Attributes" is unchecked.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2372_mcedit_utf8_fix:
fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Ticket #2372 (Editor sometimes shows multibyte UTF-8 chars as two dots)
Sometimes when text contain multibyte UTF-8 chars, editor shows two dots instead of some letter.
When moving text cursor after that letter it will be displayed properly.
When moving cursor back (before letter) it will be displayed again as two dots.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
added UTF8_CHAR_LEN
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
When reorganizing skins, two values in the sand256 skin got lost: the
header is boring black instead of interesting red, and the header in
viewer/editor is not highlighted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2610_posix_fallocate:
Documentation updated for describe preallocate feature
Added configuration option 'preallocate_space' for toggle space preallocating behaviour.
Added implementation for files space preallocation
Ticket #2610: Use posix_fallocate() when copying files/moving to a new mount point