Disabled by default. This option is available in ini file only.
setup.h: declare mouse_close_dialog variable.
setup.h: read/write mouse_close_dialog variable from/to ini file.
dialog.c: use mouse_close_dialog variable to control the single left click
outside of dialog.
* 130_sysconfdir_mc:
scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory
edit/syntax.c: fixed path to Syntax file
Move global config files from pkg_datadir to sysconfdir
Problem arose in freebsd-7.2 system. GCC has 'signed char' there
and thus code like this broke:
> char c = ...;
> if (isprint(c)) ..." // 'signed char' -> 'signed int'
('man isprint' explicitely says to pass 'unsigned char' there)
As we use multibyte chars everywhere - there is not many places to fix.
This patch fixes all 8bit collate functions.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
* 347_replace_profile_src:
Added check for glib version in mc_config_del_param and mc_config_del_group functions
Replace self-made code for work with ini-files to glib native code
configure.ac: Added check for minimal version of Glib2
Since Glib2-2.15 API of file-ini module was changed.
Old API:
void g_key_file_remove_key(...)
New API:
gboolean g_key_file_remove_key(...)
Therefore need to check version of Glib and fix return parameter from mc_config_del_param and mc_config_del_group for success build
Work with ini-file added in Glib2 since version 2.6, therefore in configure.ac added this check.
* 351_show_number_line:
fix hotkey menu entry "Toggle li&ne state" now highlighted "n"
add call CK_Toggle_Line_State to edit menu
show line number in left part of screen (hotkey alt-n)
* mc-4.6:
commandline: strip_escape: strip xterm OSC commands in $PS1
src/main.c (main): create MC home directory with 700 mode instead of 755 one.
src/main.c (main): create MC home directory (~/.mc) if absent.
add option editor_line_status to ini (src/setup.c)
add action CK_Toggle_Line_State (edt/editcmddef.h)
change "print_to_widget()" to show line state, if option_line_state = 1 show line num (edit/editdraw.c)
change "edit_draw_this_line()", (set line state: line num, etc)
add const LINE_STATE_WIDTH, add options: option_line_state, option_line_state_width (edit/edit.h)
add switch on/off show line number (edit/edit.c)
add CK_Toggle_Line_State to translation table command_names (bindings name is Toggle-Line-State).
add const LINE_STATE_COLOR for draw left area bar line state
add color pair "editlinestate" for set in ini
add help for keyword "editlinestate" on "mc --help-color" (src/main.c)
Correctly deal with prompts like (appear in debian/ubuntu):
PS1='\[\e]0;\u@\h: \w\a\]\u@\h:\w\$'
PS1='\[\e]0;\u@\h: \w\e\\\]\u@\h:\w\$'
Based on patch provided provided by Sergey Nizovtsev
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/330633
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
Here is quote from man(3) mmap:
SUSv3 specifies that mmap() should fail if length is 0. However, in kernels before 2.6.12, mmap()
succeeded in this case: no mapping was created and the call returned addr.
Since kernel 2.6.12, mmap() fails with the error EINVAL for this case.
Thanks to snizovtsev
* 140_move_docs_and_contrib:
Change name of automake constant 'USE_MCFS' to 'ENABLE_VFS_MCFS'
Move some files from contrib into misc directory
Move all stuff from lib to contrib
Move all hints-files from lib to doc/hints
mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist
2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
_icase_search and icase_search stuff has been removed,
because it's not used for now (it is also buggy)
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
wtools.c:347: assignment from incompatible pointer type
wtools.c:353: assignment from incompatible pointer type
wtools.c:361: assignment from incompatible pointer type
wtools.c:373: assignment from incompatible pointer type
wtools.c:377: assignment from incompatible pointer type
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
cmd.c:536: ‘c’ may be used uninitialized in this function
At the real position ‘c’ shouldn't be used
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>