Commit Graph

3584 Commits

Author SHA1 Message Date
Andrew Borodin
c0c744ba08 Ticket #1660: color keyword names unification.
Changed name of following color keywords:

menu -> menunormal
linestate -> editlinestate

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-22 16:09:52 +04:00
Ilia Maslakov
51401d441f Ticket #2081 (editor: incorrect overwrite text after input utf-8 chars)
fixed input multibyte chars in overwrite editor mode (remove character only when the first byte is inserted).
    thanx to Egmont Koblinger <egmont@gmail.com> for original patch and ticket.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-06 15:08:30 +04:00
Andrew Borodin
a708b5c514 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 11:16:11 +04:00
Andrew Borodin
b0be11acd5 Merged tty_draw_double_box() function into tty_draw_box() one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Ilia Maslakov
279375b418 Draw menu using double lines.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-06 10:30:58 +04:00
Andrew Borodin
9a145a88ce Added capability to draw single or double lines.
Fixed tty_print_alt_char() to draw single or double vertical
or horizintal lines.
Added argument to tty_print_one_hline() and tty_print_one_vline()
functions to draw single or double lines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Andrew Borodin
cc2f5670ec Created new function: tty_draw_double_box().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Sergei E. Ovsyannikov
d8fb069e85 Ticket #1648: implemented single-line boxes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Andrew Borodin
bdc0878379 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 09:50:33 +04:00
Slava Zanko
e36552d574 compute_dir_size() function now respect 'follow symlinks' option
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-04-06 09:40:20 +04:00
Andrew Borodin
69a8796e47 Ticket #2121: don't calculate directory size if directory is symlink.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 09:40:20 +04:00
Martin Petricek
62f7fa55f4 Ticket #2125 (User asked twice about overwriting file)
fixed: asking twice on file overwrite on move operations across filesystems
2010-04-02 00:35:28 +02:00
Andrew Borodin
0731ad5e60 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 16:34:14 +04:00
Andrew Borodin
8468ca85c2 Dynamic formatting of MC help in run-time.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 16:34:07 +04:00
Andrew Borodin
49f3028764 Minor optimization of help file conversion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 13:14:09 +04:00
Andrew Borodin
8cb8c7efa9 Help window width now dynamically depends on screen width.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 13:14:09 +04:00
Andrew Borodin
142ab7cac6 Reimplemented list area list using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 13:14:09 +04:00
Andrew Borodin
ca0af7de47 Ticket #1561: help subsystem improvements.
Initial step: don't force break long lines. Displayed
help text should be dynamically formatted depending on
screen width.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-01 13:14:08 +04:00
Andrew Borodin
5b68413e62 Applied MC indentation policy.
Applied MC indentation policy to all files modified in this branch
with some simple manual modifications.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
68dcb6d65c Ticket #2119: Fixed memory leaks in command_completion_function() function.
Thanks Vit Rosin for original patch.

Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
cc26fd2bec Free FS info before closing panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
69988b0395 Fixed memory leaks in viewer.
Free viewer resources before quit from viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Andrew Borodin
63a4966a70 Destroy converter before quit from editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Andrew Borodin
d03a7e236b Fixed memory leaks in edit_search_cmd().
Thanks Vit Rosin for the original patch.

Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Ilia Maslakov
7d0fb092a4 Ticket #2086 (viewer: incorrect scroll down/up in wrap mode)
fixed: scroll down/scroll up in wrap mode.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    fixed: scroll up in wrap mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 15:32:28 +04:00
Slava Zanko
67c26ad2ab Ticket #2001: Broken default regexp mask in filecopy dialog
Default regexp mask '^\(.*\)$' looks broken. Must be '^(.*)$'

Thanks to A.M. Genaev for solution.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-29 11:11:26 +03:00
Andrew Borodin
c5d2662f55 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-29 11:59:01 +04:00
Andrew Borodin
e30b37f522 Optimization of mcview_hexedit_save_changes() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 11:00:33 +03:00
Andrew Borodin
37f9ab495a Type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:44:01 +03:00
Andrew Borodin
ce259bf65c Optimization: removed superfluous actions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:38:47 +03:00
Andrew Borodin
79a91164c3 Ticket #2107: viewer: enable left/right scrolling in wrap mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:30:57 +03:00
Francesco Cosoleto
fc3c32f66e Ticket #2056: Don't propose ".." as a dirname.
Don't propose ".." as a dirname using mkdir command with automatic name
filling enabled.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-19 12:20:40 +03:00
Slava Zanko
5610bfbb6c Ticket #2091: Superfluous "Search done, Continue from begining?" dialog
When searching from the top of the file for something that's not there we get
"Search done, Continue from begining?" dialog before "Search string not found"
(and only if we choose "Yes" in the first one).

This should happen only if the last position>0 (either the place when search
began, or some match before).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-19 11:13:57 +02:00
Andrew Borodin
14fce3b91e Ticket #2093: fixed mouse events handling in file panel.
Dont handle wheel events on 2nd line where sort indicator
and column header are located.
Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-19 10:06:52 +03:00
Ilia Maslakov
0400e92fc5 Ticket #2022 (case sensitive quick search)
added new option quick_search_case_sensitive, with 3 position are: 0, 1, 2.
    if "0", quick search in case insensitive
    if "1", quick search in case sensitive
    if "2", get from panel "case_sensitive"

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-19 09:15:29 +03:00
Andrew Borodin
7268c7ad39 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-17 13:39:12 +00:00
Francesco Cosoleto
36771dcfa2 Ticket #2014: don't try to make directory NULL named in mkdir_cmd().
As input_expand_dialog() may return a pointer to an empty string,
the function was trying to create a directory so named and thus
print a false "File exists" error message.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-17 13:39:02 +00:00
Ilia Maslakov
4b0b9878ac Ticket #2094 (after option "Cursor beyond end of line" switch off cursor still beyond end of line)
fixed position of cursor after disable option "Cursor beyond end of line" in editor options dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-03-16 14:04:35 +03:00
Slava Zanko
320803812b Fixed fileOperation dialog height for copy/move operations (with verbose mode switched off)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-12 00:09:02 +02:00
Slava Zanko
3fb63c55ca Ticket #2099: Delete dialog broken when verbose mode is switched off
Test case:
1. go to Options/Configuration
2. switch Verbose operation off
3. point at a directory, press F8

You see broken delete dialog.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-11 17:59:08 +02:00
Ilia Maslakov
bbb9b8bafc Ticket #1770 (compilation error)
fixed compilation error with tcc.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-03-10 11:21:45 +03:00
Andrew Borodin
d2a9152cec Ticket #2087: crash in standalone editor and viewer.
Don't try update file manager panels if mc runs as standalone editor or viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-06 11:08:18 +03:00
Mikhail S. Pobolovets
93494a6d27 edit-widget.h, syntax.c: MC indenation policy has been applied
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 18:55:28 +02:00
Mikhail S. Pobolovets
9537ff6fe0 Ticket #1770: added switch 'caseinsensitive' for syntax highlighting
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 18:42:58 +02:00
Andrew Borodin
a4e508d0ac widget.c: applied MC indenation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-04 16:03:24 +00:00
Andrew Borodin
0a85086ba3 Ticket #2077: free kill_buffer after WInput destroy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-04 15:41:12 +00:00
Andrew Borodin
57bb9cb536 WInput: type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-04 15:41:12 +00:00
Andrew Borodin
da81bbb9dc Ticket #2082: don't save input line content in history if dialog was canceled.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-04 15:41:12 +00:00
Andrew Borodin
0607f23691 Ticket #2067: fixed toggle of ruler state.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-28 20:33:37 +03:00
Andrew Borodin
7b9226c5da Ticket #2068: fixed segfault in panelization of file find result.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-28 20:10:20 +03:00