(tree_store_rescan): use g_list_foreach() to free content of list.
(process_special_dirs): get rid of extra memory allocation.
(should_skip_directory): type accuracy and variable intializations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets
First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Start mc, and make sure that at least one of the two displayed
directiories contains so many files that they cannot all be displayed
at once.
Click in this panel and hold the mouse button pressed, and then move
your mouse downwards. As you pass beyond the bottom of this list, it
should start scrolling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Midnight Commander's color/skin engine often reuses the same color definition for multiple elements on the UI.
This unnecessarily limits the possibilities when playing with colors.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2356_view_segfault_arm:
lib/vfs/mc-vfs/smbfs.c: fixed printf() arguments.
Fixed type mismatches in formatted output arguments in VFS.
Fixed signed and unsigned comparisons in viewer.
Ticket 2356: viewer segfaults on ARM platform because type mismatches of printf arguments.
Double pressing of C-s runs the quick search using previous search pattern.
Usage example:
1. Press C-s
2. Make quick search with some pattern.
3. Stop quick search with any way.
4. Press C-s. The empty search line will be shown.
5. Press C-s again. The previous pattern will be shown and will be used
in current quick search.
English and Russian man pages are updated.
Thanks Alexey Losich (E.L.K) for the initial patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 1785_editor_normal_color:
Some optimization and cleanup of color-related code in skin layer.
Some optimization and cleanup of color-related code in TTY layer.
Ticket #1785: fix of editor default color usage.
(this_try_alloc_color_pair): if foreground and background editor colors
are undefined in syntax, the NORMAL_COLOR is used. This is wrong.
EDITOR_NORMAL_COLOR mut be used instead.
(edit_status): cleanup: remove useless color change.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2362_wcheck_wradio_width:
Highlight selected item of WRadio using widget width not item width.
Ticket #2362: width of WCheck and WRadio widgets are initialized incorrectly.
* commit 'origin/2287_persistent_bookmarks':
Fix in lib/logging.c for proper work on 64-bit platforms.
Change of bookmark drawing.
Fixed memory leak: destroy serialization bookmarks if file position is not saved.
Use GArray for bookmarks instead of raw array.
Minor optimization, type accuracy, includes fix.
Ticket #2287 (mcedit: persistent bookmarks)
* 2137_panel_encoding_without_vfs:
Get rid of some '#ifdef ENABLE_VFS' conditions.
Fix of file panel encoding change w/o VFS support.
Cleanup of includes in VFS sources.
Ticket #2137: cannot change panel encoding without VFS support
Now --disable-vfs doesn't mean the total disabling of VFS.
With --disable-vfs option, the localfs module is built
to use the change of file panel encoding.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 1512_panel_codepage:
Minor changes: added doxy-comments for functions:
Fix of VFS encoding parsing.
Remove only supported encodings from path.
Don't add current encoding to path again.
Created macro VFS_ENCODING_PREFIX for "#enc:" encoding prefix.
When cd to "..", remove encoding at the end of path.
Added codepage member to the WPanel struct.
Minor optimization of panel_new_with_dir().
Load codepage list before loading of configuration.
Don't push directory to history twice. Unified error message.
Ticket #1512: panel encoding is not shown correctly in "Choose codepage" dialog.