Commit Graph

11514 Commits

Author SHA1 Message Date
Andrew Borodin
86c8378d66 Fixup update of command line after window resize.
The bug only occurs with subshell enabled.

When resizing the window while in the viewer, the subshell resizes
itself and hence prints its prompt again. This is captured and processed
by mc.

src/filemanager/layout.c:setup_panels() is executed and recalculates
properties of the panel, but for some reason this time mc_prompt does
contain all the invisible characters, they are not stripped off, hence
size calculation goes wrong.

Thanks Egmont Koblinger for the detailed description of the problem and
the idea of fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-07 16:02:20 +03:00
Andrew Borodin
d99feea391 Ticket #2678: fixup of filemanager layout after screen resize.
Initial state: forced suspend the previous screen when new screen has
been created. Forced resume the current screen when the previous screen
has been closed. Don't redraw suspended screens, just set sinch_pending
flag. Screen will be redrawn immediately after resume.

This commit allow ret rid of setup_panels() call if screen is resized
and filemanager is not active screen at that time.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-07 16:02:20 +03:00
Andrew Borodin
91ab327d66 Merge branch '2677_viewer_double_dialog'
* 2677_viewer_double_dialog:
  Ticket #2677: ret rid of double dialog in viewer if search not found.
2011-12-07 13:48:30 +03:00
Andrew Borodin
5e2d802f8d Ticket #2677: ret rid of double dialog in viewer if search not found.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 20:53:43 +03:00
Slava Zanko
5975ec9f66 Merge branch '2636_configs_placement'
* 2636_configs_placement:
  Show error and don't start if config directory is a regular file
  Fixed migration rules
  Added unit test for mc_config_get_full_path() function
  Updated MAN-pages for describe new paths to configs
  Ticket #2675: man pages fixes.
  Fixed comment about location of mc.keymap file.
  fixup! Ticket #2636: The various MC config placements.
  Added function mc_config_get_full_path() for search user's config files by short names.
  Some config files moved to more appropriate places.
  Changed source code for respect '--enable-homedir' configure option.
  Ticket #2636: The various MC config placements.
  Ticket #1730 (troubles in mcviewer with utf8)
2011-12-06 16:27:59 +03:00
Slava Zanko
29ba0a0cda Show error and don't start if config directory is a regular file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
6b2c8d4800 Fixed migration rules
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
162a330f42 Added unit test for mc_config_get_full_path() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
63b8228666 Updated MAN-pages for describe new paths to configs
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Andrew Borodin
cf954642b3 Ticket #2675: man pages fixes.
Fixed mc.keymap file location in user configuration directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 16:24:10 +03:00
Andrew Borodin
56a819ec5e Fixed comment about location of mc.keymap file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 16:24:10 +03:00
Slava Zanko
48966dc194 fixup! Ticket #2636: The various MC config placements.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
6c32fa3b84 Added function mc_config_get_full_path() for search user's config files by short names.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
25c9267ac3 Some config files moved to more appropriate places.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
a8c3ab345d Changed source code for respect '--enable-homedir' configure option.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Slava Zanko
cb49ca477c Ticket #2636: The various MC config placements.
Added configure option --enable-homedir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Sergey
b4fb7b0c74 Ticket #1730 (troubles in mcviewer with utf8)
Fixed troubles in mcviewer with drawing utf8 chars.
    It happens in the middle of an utf8 char (on every 4096 bytes),
    leading to a valid char treated as unprintable.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 16:24:10 +03:00
Ilia Maslakov
5cc8114d33 Merge branch '2676_learn_f13-f20_fix'
* 2676_learn_f13-f20_fix:
  Ticket #2676 (save of some learned keys is broken)
2011-12-06 11:47:19 +04:00
Andrew Savchenko
6d99accfe0 Ticket #2676 (save of some learned keys is broken)
fixed saving of 'F13'-'F20' learned keys.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 11:42:20 +04:00
Ilia Maslakov
b0a218cee2 Added files make.log, make.clang, make.gcc, make.tcc, into .gitignore file
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-01 17:38:56 +04:00
Ilia Maslakov
a842fc59a3 Merge branch 'master' of http://github.com/MidnightCommander/mc 2011-12-01 17:36:41 +04:00
Andrew Borodin
0c8d54e273 Merge branch '2662_extended_mouse_clicks'
* 2662_extended_mouse_clicks:
  Ticket #2662: support extended mouse clicks beyond 223.
2011-11-29 09:50:35 +03:00
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