Commit Graph

9562 Commits

Author SHA1 Message Date
Andrew Borodin
15bfe2f86b Merge branch '1831_disable_nls'
* 1831_disable_nls:
  Ticket #1831: fixed compilation warings of --disable-nls and --disable-charset options.
2009-11-20 14:40:39 +03:00
Andrew Borodin
a193e2e56f Ticket #1831: fixed compilation warings of --disable-nls and --disable-charset options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-20 14:39:51 +03:00
Andrew Borodin
0b8b237d2b Merge branch '1732_cpio'
* 1732_cpio:
  Fixed skip of empty directories in the root of cpio archive.
  Ticket #1732: cpio VFS skips empty directories in the root of archive
2009-11-19 20:34:51 +03:00
Andrew Borodin
f84917a188 Fixed skip of empty directories in the root of cpio archive.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 20:34:25 +03:00
Andrew Borodin
698385bdd0 Ticket #1732: cpio VFS skips empty directories in the root of archive
Initial step: some optimization and type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 20:34:25 +03:00
Ilia Maslakov
fd95afef23 Merge branch '1809_editor_nonprintable_fix'
* 1809_editor_nonprintable_fix:
  Ticket #1809 (invalid length of nonprintable chars)
2009-11-19 17:47:47 +03:00
Ilia Maslakov
51e7de4bb5 Ticket #1809 (invalid length of nonprintable chars)
fixed calculation of the cursor position in 'edit_move_forward3'.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-11-19 17:41:26 +03:00
Slava Zanko
b2f1b0bb71 Merge branch '1613_remove_charset_confirmation'
* 1613_remove_charset_confirmation:
  Ticket #1613: remove charset confirmation on startup
2009-11-19 10:56:25 +02:00
Slava Zanko
59efad629f Ticket #1613: remove charset confirmation on startup
Since mc-4.7.0-pre1 was added charset confirmation if charset was changed.

This commit was adds automatic recognize of system charset and fix in current
config. Also, now contig file will untouched if 'Auto save setup' option is switched off.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-19 10:36:37 +02:00
Andrew Borodin
6f3b00cf16 Merge branch '212_buttonbar_commands'
* 212_buttonbar_commands: (23 commits)
  Added shortcuts to move to begin and end of text in editor.
  Fixed generation of shortcut string for menu items.
  Fixed CK_Menu command handling in editor.
  Many shortcuts were fixed.
  Ticket #1824: fixed some keybinding names
  Modified ButtonBar engine to allow bind keys to unused buttons.
  Unified some commands that differ in its behaviour when called via menu or shortcuts.
  Added Esc key to the key name table.
  Implemented keybindings engine for ButtonBar (F1-F10 keys).
  Modified menu command handling using DLG_ACTION message.
  Modified dialog callback function.
  Implemented keybindings for Help window.
  Optimization of command handling.
  Added Viewer commands and shortcuts.
  ButtonBar optimizations.
  Added missed shortcuts for ButtonBar commands.
  Type accuracy and code clean up.
  Enlarged sizes of Directory Tree dialog window.
  Implemeted keybindings for Tree widget
  Changed widget order in editor and viewer dialogs.
  ...
2009-11-19 10:08:24 +03:00
Andrew Borodin
eea8470a2d Added shortcuts to move to begin and end of text in editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:52 +03:00
Andrew Borodin
ed2e33574a Fixed generation of shortcut string for menu items.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:52 +03:00
Andrew Borodin
366067d0c3 Fixed CK_Menu command handling in editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:52 +03:00
Andrew Borodin
5e68b69020 Many shortcuts were fixed.
Ticket #1764:
  * fxed shortcuts for select/unselect/reverse selection
of file group;
  * removed 'C-x C-c' default shortcut for Quit command.

Also fixed some emacs-like keybindings for editor and viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Vit Rosin
d8130a82a3 Ticket #1824: fixed some keybinding names
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
1ed7892f8e Modified ButtonBar engine to allow bind keys to unused buttons.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
eb2e4b0e17 Unified some commands that differ in its behaviour when called via menu or shortcuts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
e252488ac2 Added Esc key to the key name table.
Also some fixes of DLG_ACTION message handling in panels and viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
c2693b7212 Implemented keybindings engine for ButtonBar (F1-F10 keys).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
b7f367542a Modified menu command handling using DLG_ACTION message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
11d21f1437 Modified dialog callback function.
Added two parameters:
  * Widget *sender -- to recognize the wiget that have sent message;
  * void *data -- to pass any user-defined data to the dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
ccabd60ffc Implemented keybindings for Help window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
5592a472f6 Optimization of command handling. 2009-11-19 10:07:51 +03:00
Andrew Borodin
e85f6b23e3 Added Viewer commands and shortcuts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
8224a26cf4 ButtonBar optimizations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
6b71dc9f12 Added missed shortcuts for ButtonBar commands.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
da33e767e9 Type accuracy and code clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
9760092c17 Enlarged sizes of Directory Tree dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
efdb645468 Implemeted keybindings for Tree widget
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
9b82c05fca Changed widget order in editor and viewer dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
e3f85ff6d0 Refactoring of ButtonBar drawing in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
ce4334e51e Made mcview_execute_cmd() function matched with dlg_exec_fn type.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Andrew Borodin
71c9e4c668 Ticket #212: implemented keybindings for ButtonBar.
First step: renamed type of dialog command execution function.
Made execution function more flexible: added parameters for
sender and receiver widgets and user data.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-19 10:07:51 +03:00
Ilia Maslakov
95312660df Merge branch '1792_editor_mouse_movement'
* 1792_editor_mouse_movement:
  Ticket #1792 (incorrect mouse movement)
2009-11-18 21:55:35 +00:00
Ilia Maslakov
64bc6aa1c7 Ticket #1792 (incorrect mouse movement)
Fixed incorrect mouse movement when text scrolled to the right.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-11-18 21:53:08 +00:00
Slava Zanko
abcc78696b Merge branch '1826_fixup_without_edit'
* 1826_fixup_without_edit:
  Ticket #1826: fixing build w/o internal edit
2009-11-18 22:45:07 +02:00
Enrico Weigelt, metux IT service
d06eb6452e Ticket #1826: fixing build w/o internal edit 2009-11-18 22:44:20 +02:00
Slava Zanko
b6a123c047 Merge branch '1794_treeview_segfault'
* 1794_treeview_segfault:
  Ticket #1794: Segfault in treeview
2009-11-18 22:37:25 +02:00
Slava Zanko
e071af460f Ticket #1794: Segfault in treeview
Testase:
 * rm -f ~/.mc/Tree
 * run mc
 * F9 -> Command -> Directory tree
 * Press F2
 * Go to '/lib' item
 * Press F2
 * exit from mc
 * run mc again
 * F9 -> Command -> Directory tree
 * press HOME key

Fix issue:
changed forgotten variable name.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-18 22:36:56 +02:00
Andrew Borodin
80a9540c7a Merge branch '1781_slow_startup'
* 1781_slow_startup:
  Ticket #1781: some improvements of startup time.
2009-11-18 14:24:31 +03:00
Andrew Borodin
15a21a71cd Ticket #1781: some improvements of startup time.
After implementation of keybinding engine and reimplenetation
of menu engine, MC starts very slow due to multiple trivial
(totally non optimized) search of many values in many arrays.

This patch performes the some speedup of MC startup process.

Statistics:
- startup time without the patch: 0m0.413s
- startup time with the patch: 0m0.073s

Great thanks to 0xe2.0x9a.0x9b for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-18 14:23:48 +03:00
Andrew Borodin
edbdaaa50d Merge branch '1776_save_select_group_flags'
* 1776_save_select_group_flags:
  Ticket #1776: save flags of select/unselet file group.
2009-11-18 14:21:23 +03:00
kenny
0c309724a5 Ticket #1776: save flags of select/unselet file group.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-18 14:21:08 +03:00
Andrew Borodin
63f93019f5 Merge branch '1803_qansi_key_defines'
* 1803_qansi_key_defines:
  Ticket #1803: added missed esc sequencies for qansi terminals.
2009-11-18 13:27:44 +03:00
Vit Rosin
aa3f4b66d4 Ticket #1803: added missed esc sequencies for qansi terminals.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-18 13:27:20 +03:00
Ilia Maslakov
7e30a30e24 Merge commit 'origin/256_backward_word_fix'
* commit 'origin/256_backward_word_fix':
  Ticket #256 (segfault in backward_word)
2009-11-18 12:41:16 +03:00
Egmont Koblinger
ecee0cd4b9 Ticket #256 (segfault in backward_word)
fixed segfault in backward_word (widget.c)
    ...
    The for loop, whose purpose is to remove exactly 1 character
    (hence I don't get why it's a loop, but nevermind) was not UTF8-ready.
    So if the character preceding the cursor was an accented one,
    it jumped to the middle of the UTF-8 sequence, causing the rest of
    the stuff go unpredictable.

    Although it *should* never happen (which, as we all know,
    does not equal to "never happens"), in this case "p" simply jumped
    over "in->buffer". The function has a "p != in->buffer" check three times,
    it might it more robust if you replaced that with "p >= in->buffer".
    This should prevent the segfault, and just stay with a slightly buggy but
    otherwise harmless alt-backspace behavior, should there be any UTF-8 or
    similar bugs left. This change is not included in my patch.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-11-18 11:41:12 +03:00
Andrew Borodin
daac0e5a67 Merge branch '1710_edit_instert_multiline'
* 1710_edit_instert_multiline:
  Ticket #1710: newlines are lost when pasting multiline text in editor.
2009-11-16 14:46:24 +03:00
Andrew Borodin
3f19a0eeb9 Ticket #1710: newlines are lost when pasting multiline text in editor.
When pasting multiline text with shift+mouse newline characters
are lost. Pasted text is not shown before any key is pressed.

Middle-mouse pasting in mc requires shift being pressed to keep mc
from interpreting the button press itself, so it is passing on to
xterm/gpm. That has the nice side effect that the pasted enter
characters are automatically shift-enter, which was simply interpreted
as newline-without-autoindent. However, the keybinding for shift-enter
have been lost in the course of #212 - it simply does nothing,
and consequently text is pasted without newlines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-13 12:03:33 +03:00
Andrew Borodin
d36c635d38 Merge branch '1779_syntax_files'
* 1779_syntax_files:
  Ticket #1779: some syntax files are not installable.
2009-11-12 12:19:59 +03:00