Commit Graph

11342 Commits

Author SHA1 Message Date
Egmont Koblinger
026b07a2ab Ticket #2662: support extended mouse clicks beyond 223.
The ancient way of reporting mouse coordinates only supports coordinates
up to 231, so if your terminal is wider (or taller, but that's unlikely),
you cannot use your mouse in the rightmost columns.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-29 09:50:03 +03:00
Ilia Maslakov
f1eacfbf32 Merge branch '275_panelization_fixes'
* 275_panelization_fixes:
  Minor optimization in file list creation.
  Show the relative filename path in the panel
  Changed type of the WPanel::is_panelized member from int to gboolean.
  Fixes segfault after switch panel mode
  Ticket #275: panelization fixes.
2011-11-18 13:20:29 +04:00
Andrew Borodin
0fcd9fdfa3 Minor optimization in file list creation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-18 10:37:33 +03:00
Ilia Maslakov
7f6655e865 Show the relative filename path in the panel
...if current panel->cwd is equal to the panelization root.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 10:01:16 +03:00
Ilia Maslakov
068b5b4948 Changed type of the WPanel::is_panelized member from int to gboolean.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 09:54:42 +03:00
Andrew Borodin
44b827bb9f Fixes segfault after switch panel mode
...from non-listing one (info, tree, quick view) to panelization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:32:40 +03:00
Andrew Borodin
3dbc61124f Ticket #275: panelization fixes.
"File listing" menu command should switch panel from panelization to the
file listing mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:31:53 +03:00
Andrew Borodin
6bb6d4911f Merge branch '71_skip_all_fix'
* 71_skip_all_fix:
  Ticket #71: not all errors are skipped after "Ignore all" choose.
2011-11-16 16:30:24 +03:00
Andrew Borodin
f929752310 Ticket #71: not all errors are skipped after "Ignore all" choose.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-11-16 16:29:49 +03:00
Sergei Trofimovich
a4fbaf95ff syntax/lua: highlight '\\' escape (and similar) properly
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>
2011-11-16 08:44:33 +03:00
Andrew Borodin
2a19255069 Merge branch '2669_broken_dir_reload'
* 2669_broken_dir_reload:
  Ticket #2669: fixed broken directory reloading.
2011-11-16 09:35:15 +03:00
Andrew Borodin
83ee61254b Ticket #2669: fixed broken directory reloading.
Bug was introduced in 5c252726f1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-09 13:51:51 +03:00
Egmont Koblinger
14973a6b02 Ticket #2640: sand256 skin update
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>
2011-11-08 10:46:31 +03:00
Ilia Maslakov
d8f85ef24d Merge branch '2653_input_password_fix'
* 2653_input_password_fix:
  Ticket #2653 (fixed: input password)
2011-11-03 16:51:25 +04:00
Ilia Maslakov
e1231e3d8e Ticket #2653 (fixed: input password)
Fixed: input field in password mode is fully masked with asterisks.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-03 16:46:31 +04:00
Slava Zanko
989bc45284 Merge branch '2652_broken_smb'
* 2652_broken_smb:
  Ticket #2652: SMB is broken
2011-10-31 23:32:51 +03:00
Slava Zanko
ffbd9561f0 Ticket #2652: SMB is broken
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>
2011-10-31 23:31:59 +03:00
SZABÓ Gergely
0865031bea Lex/Flex sources (extension .l) handled by yxx.syntax. Yacc/Bison syntax completed with all symbols. 2011-10-31 23:09:19 +03:00
Andrew Borodin
cea7ebf727 Merge branch '2637_faster_startup'
* 2637_faster_startup:
  Optimization of menu creation.
  Ticket #2637: faster startup of mc.
2011-10-31 15:53:49 +03:00
Andrew Borodin
fb3b86f2cd Optimization of menu creation.
Avoid a lot of iteration through the list of menu entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-31 15:53:05 +03:00
Andrew Borodin
1673c37548 Ticket #2637: faster startup of mc.
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>
2011-10-31 15:49:36 +03:00
Andrew Borodin
0035a1de73 Ticket #2643: can't compile on OpenIndiana (Solaris)
lib/vfs/parse_ls_vga.c: added #include "lib/unixcompat.h" where makedev
macro is defined.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:59:33 +04:00
Andrew Borodin
d7ed6615ef Merge branch '2338_free_space_calculation'
* 2338_free_space_calculation:
  src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
  Ticket #2338: use uintmax_t for file system infomation
2011-10-28 11:35:28 +04:00
Andrew Borodin
e7e3a119b4 src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:26:54 +04:00
Andrew Borodin
ac23f3277b Ticket #2338: use uintmax_t for file system infomation
... to avoid integer overflow in huge file systems.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:01:24 +04:00
Ilia Maslakov
bbbb918338 Merge branch '275_panelize_enhacement'
* 275_panelize_enhacement:
  changed mc.1 man
  changed mc.keymap
  Ticket #275 (panelize enhancement)
2011-10-27 17:05:45 +04:00
Ilia Maslakov
36e2ee7392 changed mc.1 man
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-27 15:59:24 +04:00
Ilia Maslakov
48460f6ca1 changed mc.keymap 2011-10-27 15:59:24 +04:00
Ilia Maslakov
5c252726f1 Ticket #275 (panelize enhancement)
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>
2011-10-27 15:54:57 +04:00
Sergei Trofimovich
fbb770d47a fix build error in ‘vfs_preallocate’: vfs.c:613:12: error: ‘dest_desc’ undeclared (first use in this function)
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>
2011-10-26 07:56:46 +03:00
Slava Zanko
c67bb4c53f Fixed compiler error: request for member strict in something not a structure or union
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:09:44 +03:00
Slava Zanko
489c7bf32e fixed warning: enumeration value 'FUSE_MAGIC' not handled in switch
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:06:32 +03:00
Slava Zanko
50e8e6d753 Merge branch '2635_ftp_spaces'
* 2635_ftp_spaces:
  Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server
2011-10-24 21:17:59 +03:00
Sergey
95c553c467 Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server
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>
2011-10-24 21:17:28 +03:00
Slava Zanko
83002445e3 Merge branch '2634_spftp_servers'
* 2634_spftp_servers:
  Ticket #2634: mc cannot navigate over spftp servers
2011-10-24 20:54:53 +03:00
Sergey
2cd6dbfb53 Ticket #2634: mc cannot navigate over spftp servers
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>
2011-10-24 20:54:33 +03:00
Slava Zanko
9bbcfaedd2 Merge branch '2614_word_completion'
* 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
2011-10-24 20:38:58 +03:00
Slava Zanko
87e65893e7 Fixed searching the start of word
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
eacda21c12 Code optimization: avoid lot of calls for alloc/free memory in cycle.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
d12179c0de Current word under cursor doesn't included in completion list, if same word already exists in text.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
ply
9b86146de2 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>
2011-10-24 20:38:04 +03:00
Slava Zanko
1f24672391 Merge branch '2254_fuse_preserve_attributes'
* 2254_fuse_preserve_attributes:
  Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
2011-10-24 20:21:13 +03:00
igor
2e895e3c29 Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
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>
2011-10-24 20:20:27 +03:00
Ilia Maslakov
41712de85c Merge branch '2372_mcedit_utf8_fix'
* 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)
2011-10-24 17:52:30 +04:00
Sergey
7f9c8f0969 fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:34:30 +04:00
Sergey
3e1b644f41 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>
2011-10-24 11:19:03 +04:00
Andrew Borodin
8fd8c23a49 Merge branch '2639_compile_disable_nls'
* 2639_compile_disable_nls:
  Ticket #2639: doesn't compile when using --disable-nls
2011-10-23 17:23:46 +04:00
Oswald Buddenhagen
1c0cc50a3f Ticket #2639: doesn't compile when using --disable-nls
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 16:21:36 +04:00
Egmont Koblinger
57de35ceb7 Ticket #2640: sand256 skin update.
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>
2011-10-23 10:45:53 +04:00
Egmont Koblinger
0ab3044665 Ticket #2641: URL inside the xoria256 skin definition file is obviously broken.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 10:38:35 +04:00