Commit Graph

3016 Commits

Author SHA1 Message Date
Slava Zanko
74c8c748b3 internal editor: change search/replace dialogs:
replace dialog:
 * removed 'replace order' field
 * removed 'scanf' and 'regex' chackboxes
 * added selectbox element for choise type of search
 * confirm replace and 'replace all' now radiobuttons

search dialog:
 * removed 'replace order' field
 * removed 'scanf' and 'regex' chackboxes
 * added selectbox element for choise type of search
2009-04-29 16:13:12 +03:00
Slava Zanko
d2e62a5c87 src/wtools: add callback functions for buttons to QuickWidget structure 2009-04-29 14:07:09 +03:00
Slava Zanko
2137d0037f src/wtools: add (Widget *) widget member to QuickWidget structure 2009-04-29 13:43:18 +03:00
Slava Zanko
d7f85d90d3 Search engine: fix core dump with invalid regex 2009-04-29 10:08:55 +03:00
Ilia Maslakov
6fd08cc199 replace iconv* to g_iconv*, drop iconv.h 2009-04-28 10:03:02 +00:00
Ilia Maslakov
687ab30f74 fix: g_string_free show asserts if str_nconvert_to_display return NULL.
now str_nconvert_to_display return empty GString.
2009-04-27 10:30:18 +00:00
Ilia Maslakov
d99c1def10 fix: broken building on glib < 2.14 2009-04-27 06:34:10 +00:00
Andrew Borodin
931f0d073d src/menu.c: nice menu view: added LTEE and RTEE symbols to menu separators.
Small optimization. Removed some trailing spaces. Some formatting.
2009-04-26 18:22:53 +04:00
Andrew Borodin
f08aee0ad0 widget.c (draw_hotkey): new function to draw widget text with hotkey.
(button_callback): use draw_hotkey function to draw button text.
(radio_callback): use draw_hotkey function to draw radiobutton text.
(check_callback): use draw_hotkey function to draw checkbutton text.
2009-04-26 11:21:42 +04:00
Andrew Borodin
7ef779dcbc src/search/lib.c (mc_search__recode_str): use symbolic constant
for invalid convertion descriptor.
2009-04-26 09:17:48 +04:00
Andrew Borodin
a20b472807 Merge branch 'm-utf-8' of git://midnight-commander.org/git/mc into m-utf-8 2009-04-26 09:04:58 +04:00
Andrew Borodin
9bb92b02ff src/strutil.h: fixed function descriptions.
src/strutil.c: removed unneeded #include's.
2009-04-26 09:01:34 +04:00
Slava Zanko
94bb61742b Search engine: move string constants from code of normal search to common code area (lib.c) 2009-04-25 16:53:05 +03:00
Slava Zanko
f8deaf63bc Search engine: regex search now worked in any charset 2009-04-25 16:51:37 +03:00
Andrew Borodin
8e43cdbfce Fixed i18n for search error messages.
src/search/internal.h: declare search error messages as global variables.
src/search/normal.c: define search error messages.
2009-04-25 13:44:33 +04:00
Slava Zanko
95ecd0ce54 Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
  Fixed coredump in editor after help call.
  src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined.
  src/strutil.h: created align_crt_t type for string alignment on terminal.
  fix: uninitialized variable "p" in str_8bit_fit_to_term
2009-04-25 11:10:52 +03:00
Slava Zanko
c2455b246c Make search module more independ (and prepare for future mclib :) ) 2009-04-25 11:09:47 +03:00
Slava Zanko
b2442d1b1e Reorganize source structure: move search engine files into src/search subdir 2009-04-25 10:25:13 +03:00
Slava Zanko
a1f0d9429c Search engine: regexp search now worked 2009-04-25 10:15:56 +03:00
Andrew Borodin
9bd0607048 Fixed coredump in editor after help call.
src/help.c:
Intialize `data' static variable.
(translate_file): fixed memory leak.
(interactive_display): check correct variable to display error message.
2009-04-24 20:40:18 +04:00
Andrew Borodin
95b622f0db src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined. 2009-04-24 20:11:45 +04:00
Andrew Borodin
d716433399 src/strutil.h: created align_crt_t type for string alignment on terminal.
Changed type of related function arguments.

src/strutil.c (str_fit_to_term): changed type of 3rd argument
from int to align_crt_t.

src/strutil8bit.c (str_8bit_fit_to_term): likewise.

src/strutilascii.c (str_ascii_fit_to_term): likewise.

src/strutilutf8.c (str_utf8_fit_to_term): likewise.

src/screen.c: changed type of alignment variables and structure fields
2009-04-24 20:01:06 +04:00
Ilia Maslakov
16dd0ad073 fix: uninitialized variable "p" in str_8bit_fit_to_term 2009-04-24 08:40:00 +00:00
Slava Zanko
10b7bdb361 Project now build with:
make CFLAGS="-ansi -pedantic -Wall -Wextra -Werror"

WARNING! Builds wuthout samba.
2009-04-24 01:47:22 +03:00
Slava Zanko
d9500ec836 Search engine: fix return number of found bytes
Some reidentation of code
2009-04-23 16:26:14 +03:00
Slava Zanko
a3e6a1147d Search engine: fixed types in functions parameters.
* renamed founded* to found* :)
2009-04-23 16:16:00 +03:00
Slava Zanko
4114a95723 Search engine: fix search in case sentitive mode 2009-04-23 15:52:03 +03:00
Slava Zanko
9db1cf46a4 Continue develop of search engine: simple search now worked 2009-04-23 15:46:06 +03:00
Slava Zanko
dac42ca7f2 Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
  fix: build error on glib < 2.14
2009-04-23 14:32:32 +03:00
Slava Zanko
8fb216e732 Continue develop of mc_search module.
* Fix init of global variables cp_source and cp_display
 * add property (mc_search_t*) search to WEdit srtucture
 * start of reorganize edit/editcmd.c for new search engine
2009-04-23 14:30:14 +03:00
Ilia Maslakov
1133dd750b fix: build error on glib < 2.14 2009-04-23 07:34:10 +00:00
Sergei Trofimovich
725fe42290 src/view.c: valgrind: hackish fix of uninitialised value usage
valgrind log when run viewer
==9981== Conditional jump or move depends on uninitialised value(s)
==9981==    at 0x45891B: view_map_offset_and_column (view.c:584)
==9981==    by 0x458D5B: view_column_to_offset (view.c:917)
==9981==    by 0x458DD8: view_set_first_showed (view.c:1443)
==9981==    by 0x45B79F: view_new (view.c:4136)
==9981==    by 0x45B911: mc_internal_viewer (view.c:3969)
==9981==    by 0x423D85: view_file_at_line (cmd.c:132)
==9981==    by 0x423E78: do_view_cmd (cmd.c:217)
==9981==    by 0x45CDE7: buttonbar_call (widget.c:2425)
==9981==    by 0x45D754: buttonbar_callback (widget.c:2456)
==9981==    by 0x427D42: dlg_process_event (dialog.c:618)
==9981==    by 0x428035: run_dlg (dialog.c:789)
==9981==    by 0x43E708: main (main.c:1688)
==9981==  Uninitialised value was created by a stack allocation
==9981==    at 0x4586F0: view_map_offset_and_column (view.c:593)

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-04-22 22:15:51 +03:00
Sergei Trofimovich
b88147f0c6 cleanup: build warnings: 'char *' -> 'const char *'
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-04-22 22:15:43 +03:00
Andrew Borodin
dc8150a521 src/strutil.h: created estr_t type for result of charset convertion functions.
Modified descriptions.

src/strutil.c (_str_convert): return value of estr_t type instead of int.
Check coder first. Removed redundant code.
(str_convert): simplified. Changed returned type to estr_t.
(str_nconvet): likewise.
(str_vfs_convert_to): likewise.
(str_vfs_convert_from): likewise. Used symbolic names instead of hardcoded values.
(str_translate_char): likewise.

src/strutil8bit.c (str_8bit_vfs_convert_to): likewise. Made function static.

src/strutilascii.c (str_ascii_vfs_convert_to): likewise.

src/strutilutf8.c: (str_utf8_vfs_convert_to): Used symbolic names
instead of hardcoded values.

src/charsets.c (convert_from_utf_to_current): likewise.
(convert_from_utf_to_current_c): likewise.
(convert_from_8bit_to_utf_c): likewise.
(convert_from_8bit_to_utf_c2): likewise.

src/view.c (view_get_char): likewise.

vfs/vfs.c (_vfs_translate_path): Changed returned type to estr_t.
Used symbolic names instead of hardcoded values.
(vfs_translate_path): likewise.
2009-04-22 20:35:32 +04:00
Andrew Borodin
2ad5d2e919 Fixed linkage.
charset.c: cp_display and cp_source variables are made global not static and...
charset.h: ...defined here as extern.
search.h: added required #include's.
search.c: fixed cp_display and cp_source variables declaration.
2009-04-22 20:20:42 +04:00
Slava Zanko
ab729f822a src/search.[ch]: add experimental search engine. Need to review and revork.
* added multicharset search feature
 * added template for HEX and GLOB searches (for viewer and for search files dialog)
 * implemented normal search with/without characters cases

WARNING! UNSTABLE! Code not checked for work! I'm just wrote and compiled.
2009-04-22 18:52:49 +03:00
Slava Zanko
b0a0a8f17b src/screen.c: fix memleak in remove_encoding_from_path 2009-04-22 15:34:19 +03:00
Andrew Borodin
baef389ce7 menu.c (menubar_new): init the subsel field clearly.
(menu_callback): show menu after screen resize.
2009-04-22 12:00:21 +03:00
Slava Zanko
e8f71d0db8 Fix memory leak and coredump if do search in editor. 2009-04-22 11:59:14 +03:00
Ilia Maslakov
990838a226 fix: draw in core editor 8-bit locale and UTF-8 source 2009-04-21 21:27:42 +00:00
Slava Zanko
1d3c9e1742 Charsets of panel: if no encode, path correctly revert tooriginal 2009-04-21 16:36:03 +03:00
Slava Zanko
659019313f Charsets of panel: Add behaviour for "No translate" choise.
Now translate string will clean from '/#enc<chrs>'
2009-04-21 15:20:17 +03:00
Slava Zanko
76bbeb60b2 Fixed search with different display and source charsets 2009-04-21 14:19:42 +03:00
Slava Zanko
540bdb85ed Changes in SelectCodepage dialog:
* Fixed change codepage of panel by hotkey
 * Dialog now show as centered relative to panel, not center of screen
2009-04-21 11:48:13 +03:00
Slava Zanko
b019ea7f9c Add hotkey CTRL+t for change codesets of panels 2009-04-20 16:05:51 +03:00
Slava Zanko
45abfa28a4 src/strutil.c: Fix returning empty string with partially wrong recoding 2009-04-20 16:04:45 +03:00
Slava Zanko
df3926d1c4 Fix show directory and file names in other that system encoding symbolsets (with error of recoding).
Old behaviour: enrties not show, new behaviour: entries show, but marked as broken files if
recoding impossible
2009-04-20 13:09:59 +03:00
Ilia Maslakov
26f0e58810 fix: definition of convert_from_8bit_to_utf_c2 in src/charsets.h 2009-04-20 09:08:48 +00:00
Ilia Maslakov
78b7678845 Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8 2009-04-20 09:03:04 +00:00
Ilia Maslakov
4725fe329c fix: edit in 8-bit locale UTF-8 source 2009-04-20 09:01:47 +00:00
Slava Zanko
303cec8cb6 Supress compiler warnings. Now able to compile project with
make CFLAGS=-Werror
2009-04-20 11:10:06 +03:00
Ilia Maslakov
7494db39ed clear some build warnings 2009-04-20 07:30:32 +00:00
Ilia Maslakov
9d855b3253 fix: build without HAVE_CHARSET 2009-04-20 05:51:32 +00:00
Ilia Maslakov
a4b354f99c fix: incorret draw files in 8-bit codeset after recode 2009-04-19 20:28:00 +00:00
Andrew Borodin
6a638f25b3 strutil.h: replaced iconv_t to GIConv in INVALID_CONV definition.
Removed <iconv.h> include. Add "global.h" include.
Moved str_isutf8 function declaration under header guard.
Formatting.

view.c: used symbolic constant.
Formatting.
2009-04-19 17:45:10 +04:00
Ilia Maslakov
9c713d2128 fix: broken output in 8-bit locale 2009-04-19 13:12:08 +00:00
Ilia Maslakov
b87edfdc26 fix: input in 8-bit locales 2009-04-19 12:18:18 +00:00
Ilia Maslakov
28425d427f Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8 2009-04-18 14:51:01 +00:00
Ilia Maslakov
d8175b3e6b fix: incorrect input 2009-04-18 14:50:05 +00:00
Andrew Borodin
db26e75242 src/strutil8bit.c (str_8bit_search_first): fixed case sensitivity searching.
(str_8bit_search_last): likewise.
2009-04-18 16:38:36 +04:00
Andrew Borodin
b8184a4595 src/screen.c (set_panel_formats): use symbolic constant in message() call. 2009-04-18 12:55:48 +04:00
Andrew Borodin
438e95b110 src/strutil.c (str_printf): use g_string_append_vprintf() function if available. 2009-04-18 12:50:32 +04:00
Slava Zanko
6568cad9df Fixies for search stuff in editor.
src/charsets.c:
 * fix error with recoding string for display
edit/editcmd.c:
 * fix core dump if search dialog calls some multiple times
 * fix memory leak
2009-04-17 18:08:51 +03:00
Slava Zanko
95e2fb90ef Fix search with 8-bit system codepage in utf-8 text codepage 2009-04-17 17:05:19 +03:00
Ilia Maslakov
284098a073 fix: convert_from_utf_to_current_c trap on incorrect strint 2009-04-17 11:35:44 +00:00
Ilia Maslakov
137e3e7259 fix: incorrect convert_from_utf_to_current_c, convert_from_utf_to_current 2009-04-17 10:27:59 +00:00
Slava Zanko
0730efa2fc Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
  fix by andrew_b uninitialised tool->compose.
  fix incorrect draw utf-8 text in 8-bit locale
  fix some warnings
  add convert_from_utf_to_current_c, fix little warnings
  add utf8_display global variable, if display bits select utf-8 utf8_display = 1
  add more convertion before draw text
  change charbuf to char from unsigned char
  add: convert input in utf locale to needle
  fix incorrect convertion from utf to display CP
  fix: width utf buffer
  add in core viewer codepage selection from list
  fix: editor status bar
  fix: edit_get_prev_utf segfault, add compare str with start of buf

Conflicts:
	edit/edit.h
2009-04-17 11:52:20 +03:00
Slava Zanko
1e5a201abd Temporary commit. Half-fix searching.
Not fixed search by regexp.
2009-04-17 11:46:06 +03:00
Ilia Maslakov
92dac8d7e3 fix by andrew_b uninitialised tool->compose.
Trouble detected by valgrind as "Conditional jump or move depends on uninitialised value(s)"
2009-04-17 06:25:20 +00:00
Ilia Maslakov
8767909493 fix incorrect draw utf-8 text in 8-bit locale 2009-04-17 06:17:37 +00:00
Ilia Maslakov
42eba5c18c fix some warnings 2009-04-16 21:28:02 +00:00
Ilia Maslakov
eb28a3b2b3 add convert_from_utf_to_current_c, fix little warnings 2009-04-16 21:26:08 +00:00
Ilia Maslakov
df1d805b44 add utf8_display global variable, if display bits select utf-8 utf8_display = 1 2009-04-16 21:22:52 +00:00
Ilia Maslakov
8529756be9 fix incorrect convertion from utf to display CP 2009-04-16 15:10:51 +00:00
Ilia Maslakov
408e75c1fa add choice encoding in panel from list ( by call do_select_codepage() ) 2009-04-16 10:32:39 +00:00
Slava Zanko
ac8ae55181 Fix conflicts after rebasing 2009-04-16 13:24:47 +03:00
Slava Zanko
6771a00b4c add in core viewer codepage selection from list
Author: Ilia Maslakov <il.smind@gmail.com>
2009-04-16 13:14:30 +03:00
Andrew Borodin
dd6e11fa9c Unification of widgets API.
widget.h: chaged paremeters order of listbox_new()
and groupbox_new() functions.

widget.c: likewise.

src/achown.c: sync with modified API of WListbox and WGroupbox widgets.
src/boxes.c: likewise.
src/chown.c: likewise.
src/complete.c: likewise.
src/find.c: likewise.
src/hotlist.c: likewise.
src/layout.c: likewise.
src/listmode.c: likewise.
src/option.c: likewise.
src/panelize.c: likewise.
src/wtools.c: likewise.
edit/editcmd.c: likewise.
2009-04-16 13:14:29 +03:00
Andrew Borodin
5141e88f70 Type accuracy.
dialog.h: define values for cb_ret_t enum.

widget.c: removed trailing spaces. Formatting.
(insert_char): type accuracy for cb_ret_t.
(listbox_key): likewise.
2009-04-16 13:14:29 +03:00
Andrew Borodin
12b1081c64 Unification of panel frame painting.
myslang.h: modified definition of ACS_LTEE symbol. Added definition
of ACS_RTEE symbol.

screen.c (show_dir): paint left and right symbols of mini infor separator
as for S-Lang library as for NCurses one.
2009-04-16 13:14:29 +03:00
Slava Zanko
4af2c5b938 src/strutil.c: replace call of g_string_append_vprintf() with g_strdup_vprintf and g_string_append
Not all versions of glib2 have function g_string_append_vprintf
2009-04-16 13:14:28 +03:00
Slava Zanko
8e6a6e48b6 edit/{editcmd.c,edit.h,edit.c}: remove catstrs() and freestrs() functions
These functions fully replaced with g_strconcat ()

WARNING! This just stupid replace. Some parts of code need to usage
concat_dir_and_file() function instread of g_strconcat ()
2009-04-16 13:14:28 +03:00
Slava Zanko
2ac6b553c6 Rework strutils for usage GString
instread of self-made buffers.
2009-04-16 13:13:58 +03:00
Mikhail S. Pobolovets
1959b42fdc Merge branch '252_doxygen_desc_src'
Conflicts:

	src/file.h

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-16 08:26:52 +03:00
Andrew Borodin
004bc0077e Unification of widgets API.
widget.h: chaged paremeters order of listbox_new()
and groupbox_new() functions.

widget.c: likewise.

src/achown.c: sync with modified API of WListbox and WGroupbox widgets.
src/boxes.c: likewise.
src/chown.c: likewise.
src/complete.c: likewise.
src/find.c: likewise.
src/hotlist.c: likewise.
src/layout.c: likewise.
src/listmode.c: likewise.
src/option.c: likewise.
src/panelize.c: likewise.
src/wtools.c: likewise.
edit/editcmd.c: likewise.
2009-04-15 20:22:26 +04:00
Andrew Borodin
e029489fb6 Type accuracy.
dialog.h: define values for cb_ret_t enum.

widget.c: removed trailing spaces. Formatting.
(insert_char): type accuracy for cb_ret_t.
(listbox_key): likewise.
2009-04-15 20:12:47 +04:00
Andrew Borodin
57167b7a43 Unification of panel frame painting.
myslang.h: modified definition of ACS_LTEE symbol. Added definition
of ACS_RTEE symbol.

screen.c (show_dir): paint left and right symbols of mini infor separator
as for S-Lang library as for NCurses one.
2009-04-15 20:04:14 +04:00
Slava Zanko
cada92062a Fix forgot calls of iconv (replace with g_iconv) 2009-04-15 12:22:34 +03:00
Slava Zanko
ad2eb8877b src/strutil.c: replace call of g_string_append_vprintf() with g_strdup_vprintf and g_string_append
Not all versions of glib2 have function g_string_append_vprintf
2009-04-14 15:56:46 +03:00
Slava Zanko
dbf8dd1bc2 Rework strutils for usage GString instread of self-made buffers. 2009-04-14 13:29:01 +03:00
Andrew Borodin
b85f92c3fe Small redesign of status dialog of directory size calculation.
src/smd.c (single_dirsize_cmd): create status dialog if needed not always.

file.h: fixed typo.

file.c (compute_dir_size_create_ui): changed title of dialog.
(compute_dir_size_destroy_ui): formatting.
(compute_dir_size_update_ui): simplified text of dialog.
2009-04-13 20:36:01 +04:00
Andrew Borodin
49e72ec135 file.c (compute_dir_size): don't break the directory reading loop
if cannot get the stat of current entry.
2009-04-13 20:36:00 +04:00
Andrew Borodin
11bc00bea9 Interruptable computing of directory size.
file.h: new type and functions for status dialog
of directory computing size. Added required includes.
(compute_dir_size): changed return value. Added new parameters
to handle status dialig.
Fixed comments.

file.c: new functions for status dialog of directory
computing size.
(compute_dir_size): interruptable dir size computing.
Changed return value. Added new parameters to handle status dialig.
(panel_compute_totals): likewise.
(panel_operate): likewise.

cmd.c (single_dirsize_cmd): interruptable dir size computing.
(dirsizes_cmd): likewise.
2009-04-13 20:36:00 +04:00
Ilia Maslakov
b5c4a9ddf2 add str_isutf8 return 1 if codeset_name is utf8 or utf-8
add unsigned int utf8:1 to struct WEdit if utf8 then file multibute codeset
2009-04-09 14:23:08 +00:00
Ilia Maslakov
b617640aab clear trailing spaces in src/strutil.c 2009-04-09 10:29:00 +00:00
Ilia Maslakov
eba7d3a130 Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8 2009-04-09 08:02:43 +00:00
Ilia Maslakov
d004658a1d add source_codepage to ini file, change mechanism (ctrl-t) of selection codepage
if codepage selected then this is source codepage and must be convert to utf-8
2009-04-09 07:57:40 +00:00
Andrew Borodin
6e3cc60e9e src/screen.c (display_mini_info): don't display incorrect info about ".." directory. 2009-04-06 20:42:52 +04:00
Ilia Maslakov
3b5e2c052f Merge branch 'utf-8' into master
resolve conflicts:
	configure.ac
	src/complete.c
	src/file.c
	src/layout.c
	src/main.c
	src/menu.c
	src/screen.c
	src/util.c
	src/widget.c
	src/widget.h
2009-04-04 19:50:46 +00:00
Andrew Borodin
ecd16f7873 util.c (i18n_checktimelength): more correct conflict resolution of previous commit. 2009-04-04 11:39:00 +04:00
Ilia Maslakov
365175195f fix: cmd.c 'set_panel_encoding' add param to encoding = input_dialog(...)
fix: tree.c dirty patching tree_move
fix: util.c dirty patching 'i18n_checktimelength'
fix: view.c 'view_search' bug's
fix: view.c 'view_select_encoding' add param to encoding = input_dialog(...)
fix: some trailing spaces removed
2009-04-03 12:19:09 +00:00
Andrew Borodin
19fddfa787 src/widget.c: WListbox: send DLG_ACTION message to the parent dialog. 2009-04-01 20:23:23 +04:00
Andrew Borodin
9cf728f2c2 src/dialog.h: Fixed comment for DLG_ACTION message.
src/widget.c: WListbox: send DLG_ACTION message to the parent dialog.
2009-04-01 20:23:04 +04:00
Ilia Maslakov
a443945748 replace "Persistent blocks" to "Persistent selection" in
edit/edit.c, edit/edit.h, edit/editoptions.c, src/setup.c
2009-03-28 00:35:25 +00:00
Slava Zanko
2390c46d06 Rename '*persistent_block*' to '*persistent_selection*' for more sence.
Thanks to Ossi
2009-03-27 22:48:31 +02:00
Ilia Maslakov
3cc9aac553 Add load/save option editor_persistent_block to ~/.mc/ini;
Add option editor_persistent_block to Options/General dialog;
Make persistent/nonpersistent blocks if mcedit;
Enlarged height of Options/General dialog from 17 to 19 lines;
2009-03-26 11:32:18 +00:00
Ilia Maslakov
f22b5d16b5 Add load/save option editor_persistent_block to ~/.mc/ini
Add option editor_persistent_block to Options/General dialog
enlarged Options/General dialog Height from 17 to 19 lines
2009-03-26 09:21:43 +00:00
Ilia Maslakov
687d9a40f2 add ESC seq for begPutty 2009-03-25 21:32:25 +00:00
Andrew Borodin
72d0a117b6 src/screen.c (display_mini_info): don't display incorrect info about ".." directory. 2009-03-23 19:58:35 +03:00
Sergei Trofimovich
5eb39e7d9a Merge branch 'mc-4.6'
* mc-4.6:
  src/file.c: move_dir_dir():
  fileopctx.h: set definitely values for FileProgressStatus enum type.
  src/file.c: modified error messages fro warn_same_file() function.
  non-relevant comment removed
  little fix for show message
  Denis Vlasenko posted a patch which would fix issue when no dialog for break operation. Trouble: recently i accidentally entered '.' instead of '..' in the file copy dialog on a relatively big tree ... for every file in the tree i got the <foo> and <bar> are the same file message box, without any way to escape except killing mc from the outside. Rework warn_same_file for more usage glib. ... msg = g_strdup_printf() ...
  po/sk.po: translation update by Ivan Masár <helix84@centrum.sk>
  mountlist: use fsblkcnt_t when available (fixes #179)
  Fixed menu painting for NCurses screen library.
  Backport: syntax/spec.syntax: .spec syntax update by adamw (#189)
  lib/mc.ext.in: command line options fix by adamw (#183)

Conflicts:
	ChangeLog
	po/az.po
	po/be.po
	po/bg.po
	po/ca.po
	po/cs.po
	po/da.po
	po/de.po
	po/el.po
	po/es.po
	po/eu.po
	po/fi.po
	po/fr.po
	po/hu.po
	po/it.po
	po/ja.po
	po/ko.po
	po/lt.po
	po/lv.po
	po/mn.po
	po/nl.po
	po/no.po
	po/pl.po
	po/pt.po
	po/pt_BR.po
	po/ro.po
	po/ru.po
	po/sk.po
	po/sl.po
	po/sr.po
	po/sv.po
	po/ta.po
	po/tr.po
	po/uk.po
	po/vi.po
	po/wa.po
	po/zh_CN.po
	po/zh_TW.po
	src/file.c
2009-03-19 21:35:03 +02:00
Sergei Trofimovich
97496014aa Merge commit 'origin/179_fsblkcnt_t' into mc-4.6
* commit 'origin/179_fsblkcnt_t':
  mountlist: use fsblkcnt_t when available (fixes #179)
2009-03-18 22:04:48 +02:00
Andrew Borodin
8353da9e8f src/file.c: move_dir_dir():
* changed type of move_over variable from int to gboolean;
    * fixed memory leak: destdir is not free'd when the same directory is copied;
    * don't use the non-valid dbuf variable if mc_stat(d, &dbuf) returns non-zero.
2009-03-17 19:45:00 +00:00
Andrew Borodin
5df2f5aa22 fileopctx.h: set definitely values for FileProgressStatus enum type.
file.c file.h: fixed types for file/dir operation functions.
2009-03-17 19:41:29 +00:00
Andrew Borodin
68009d016f src/file.c: modified error messages fro warn_same_file() function.
po/*.po: updated to sync with modified src/file.c file.
2009-03-17 19:40:41 +00:00
Ilia Maslakov
0ffd71949f non-relevant comment removed 2009-03-17 16:57:22 +00:00
Ilia Maslakov
d60f4957de little fix for show message 2009-03-17 16:56:49 +00:00
Ilia Maslakov
a079bd950c Denis Vlasenko posted a patch which would fix issue when no dialog for break operation. Trouble: recently i accidentally entered '.' instead of '..' in the file copy dialog on a relatively big tree ... for every file in the tree i got the <foo> and <bar> are the same file message box, without any way to escape except killing mc from the outside. Rework warn_same_file for more usage glib. ... msg = g_strdup_printf() ... 2009-03-17 16:53:37 +00:00
Andrew Borodin
d2eec23c1e ChangeLog src/screen.c: fixed typo in function name. 2009-03-15 10:36:28 +03:00
Ilia Maslakov
badad58101 Merge branch '19_show_abort_skip_for_copy_error' 2009-03-14 18:46:43 +00:00
Ilia Maslakov
dc80d6821f Merge branch '267_code_navigation_via_etags' 2009-03-11 18:25:45 +00:00
Enrico Weigelt, metux IT service
6de4c5aafc mountlist: use fsblkcnt_t when available (fixes #179)
When defined 64bit interface to filesystem we do not get overflow
when detect FS size.
2009-03-08 15:57:43 +02:00
Andrew Borodin
bf8ac0594e src/file.c: move_dir_dir():
* changed type of move_over variable from int to gboolean;
    * fixed memory leak: destdir is not free'd when the same directory is copied;
    * don't use the non-valid dbuf variable if mc_stat(d, &dbuf) returns non-zero.
2009-03-08 13:22:10 +03:00
Andrew Borodin
5d50f64a2b fileopctx.h: set definitely values for FileProgressStatus enum type.
file.c file.h: fixed types for file/dir operation functions.
2009-03-08 12:49:28 +03:00
Andrew Borodin
82242cbbd4 src/file.c: modified error messages fro warn_same_file() function.
po/*.po: updated to sync with modified src/file.c file.
2009-03-08 12:38:35 +03:00
Ilia Maslakov
1e59c411b5 non-relevant comment removed 2009-03-05 11:10:03 +00:00
Ilia Maslakov
43918cc4ba little fix for show message 2009-03-05 10:41:41 +00:00
Ilia Maslakov
7c79cfe10c Denis Vlasenko posted a patch which would fix issue when no dialog for break operation. Trouble: recently i accidentally entered '.' instead of '..' in the file copy dialog on a relatively big tree ... for every file in the tree i got the <foo> and <bar> are the same file message box, without any way to escape except killing mc from the outside. Rework warn_same_file for more usage glib. ... msg = g_strdup_printf() ... 2009-03-05 09:59:50 +00:00
Mikhail S. Pobolovets
ec8883dac1 src/find.c: Micro fix for 'Skip hidden' shortcut
It's now Alt+k instead of Alt+p

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-03-02 08:55:27 +02:00
Andrew Borodin
a9d59f9afc Fixed menu painting for NCurses screen library. 2009-02-26 19:55:10 +03:00
Ilia Maslakov
20c769b063 Add stack navigation structure. Add hotkeys A-'-' backward A-'=' forward navigation to files.
add edit/etags.c edit/etags.h
2009-02-25 21:55:35 +00:00
Andrew Borodin
210ffed4fd Fixed menu painting for NCurses screen library. 2009-02-24 22:20:21 +03:00
Mikhail S. Pobolovets
97a7b214ac Merge branch '132_search_skip_hidden' 2009-02-21 17:53:26 +02:00
Mikhail S. Pobolovets
6e81dab573 src/find.c: 'Skip .hidden files and dirs' renamed to 'Skip hidden'
Check box position has been changed.

po/ru.po: translation update for 'Skip hidden'.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-21 16:48:00 +02:00
Mikhail S. Pobolovets
da3b76b8d7 Merge branch '176_lzma' 2009-02-21 12:23:50 +02:00
Mikhail S. Pobolovets
dbba22eae3 src/find.c: 'Skip .hidden files and dirs' has been introduced.
An option to toggle on|off searching for|in hidden directories
and files. (#132)

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-21 11:53:38 +02:00
Andrew Borodin
c7987f0b1d Reimplemented displaying size of total marked files. 2009-02-20 17:21:04 +03:00
Mikhail S. Pobolovets
3dad27bfe5 Fix compilation error
screen.o: In function `show_free_space':
/home/dsterba/_dev/mc-build/src/screen.c:783: undefined reference to
`mhl_mem_free'
/home/dsterba/_dev/mc-build/src/screen.c:784: undefined reference to
`mhl_str_dup'

Signed-off-by: David Sterba <dave@jikos.cz>
2009-02-17 19:41:02 +02:00
Mikhail S. Pobolovets
cc69f5d278 Subject: [PATCH] Some constants has been introduced.
*_OPTIONS_COUNT should be used from now to controll
 widgets drawing.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-17 09:22:24 +02:00
Mikhail S. Pobolovets
ae07a0260e Fixed memory leak in init_my_statfs() function.
By andrew_b.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-17 09:22:24 +02:00
Enrico Weigelt, metux IT service
4333bc4b60 fix for #188 2009-02-17 09:22:24 +02:00
Sergei Trofimovich
d8d26d42fd fixed mismerge: completion stuff
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-15 11:57:26 +02:00
Sergei Trofimovich
5454c05b38 mismerge fix: g_concat -> g_strconcat
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-15 11:53:49 +02:00
Sergei Trofimovich
ec3d3cf913 header guard fix
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-15 11:52:56 +02:00
Patrick Winnertz
b10bfccfc0 Remove some of the SHELL_ESCAPE_STR Stuff...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-13 17:57:01 +01:00
Patrick Winnertz
0b0f8e6128 Revert "introduced new type SHELL_ESCAPED_STR for more type safety"
This reverts commit 90763ba82f.

Conflicts:

	ChangeLog
	mhl/escape.h
	src/complete.c
	vfs/fish.c

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 15:08:01 +01:00
Mikhail S. Pobolovets
6a209bdb59 Simple doxygen description for files in edit directory.
Mostly \file and \brief tag added.
Some fixes for warnings with existing comments.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Mikhail S. Pobolovets
08469a001e Some fixups with wrongly highlighted words
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Mikhail S. Pobolovets
758ab591d8 Simple doxygen description for files in src directory.
Mostly \file and \brief tag added.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Patrick Winnertz
8b7e47d9cc Last bunch of reverts and removal of mhl/*
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 14:11:41 +01:00
Patrick Winnertz
7d0fa9afce fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics) again
and add shell_(un)escape again

This patch reintroduces fix firstly appeared in (and recently broken by mhl revert)
>   commit e48cb7c89f
>   Author: Sergei Trofimovich <st@anti-virus.by>
>   Date:   Fri Jan 30 09:31:28 2009 +0200
>
>        mhl: added mhl_strmove() function (memmove semantics)
...
>            Snippet of man strcpy:
>       DESCRIPTION
>               The  strcpy()  function copies the string pointed to by src, including the terminating
>               null byte ('\0'), to the buffer pointed to by dest.  ___The strings may not overlap___,
>               and the destination string dest must be  large enough to receive the copy.
>       We used strcpy to move data chunk in memory: "./foo" -> "foo", etc.
>
>       This patch introduces mhl_strmove and fixed canonicalize_pathname.

Conflicts:

	src/util.h

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 14:02:20 +01:00
Patrick Winnertz
f237a14635 Revert some functions (mhl_mem_free to g_free, etc)
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 13:52:53 +01:00
Patrick Winnertz
e4e135399f Revert "replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()"
This reverts commit 54d6ec88dc.

Conflicts:

	ChangeLog
	mhl/string.h
	src/command.c
	src/complete.c
	src/util.c
2009-02-10 13:29:18 +01:00
Sergei Trofimovich
c26e289b9f panel: fixed crash when rename/copy (introduced by revert of mhl_strmove)
g_strconcat expects 0 as last argument, but mhl_strmove is not.
When reverting this detail was overlooked. Returning 0 as last argument.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-07 16:20:03 +02:00
Sergei Trofimovich
97bdf084f8 shell_unescape: fix recently added breakage of decoding escapy strings
This pach fixes two issues (both appear only in escapy strings):
  * tail cut of escapy string when '\\' is met
  * head cut of escapy string when '\\' is met :]

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-07 16:15:41 +02:00
Sergei Trofimovich
96fc77bc3e fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics) again
This patch reintroduces fix firstly appeared in (and recently broken by mhl revert)
>   commit e48cb7c89f
>   Author: Sergei Trofimovich <st@anti-virus.by>
>   Date:   Fri Jan 30 09:31:28 2009 +0200
>
>        mhl: added mhl_strmove() function (memmove semantics)
...
>            Snippet of man strcpy:
>       DESCRIPTION
>               The  strcpy()  function copies the string pointed to by src, including the terminating
>               null byte ('\0'), to the buffer pointed to by dest.  ___The strings may not overlap___,
>               and the destination string dest must be  large enough to receive the copy.
>       We used strcpy to move data chunk in memory: "./foo" -> "foo", etc.
>
>       This patch introduces mhl_strmove and fixed canonicalize_pathname.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-07 16:10:33 +02:00
Sergei Trofimovich
e0aba5d588 completion: do not complete dead/broken files as dirs
When we try to complete something what can't be stat()'ed,
we treated it like dir. Now we do not consider such candidates
for completion.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-07 16:04:36 +02:00
Patrick Winnertz
8bd883085f Removed TODO Marker in util.c as the functions are fully ported to use glib now
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 15:01:34 +01:00
Patrick Winnertz
161164c556 Reworked shell_unescape function in order to make use of glib.
This commit will replace some *ptr = c; stuff with g_string_append_c(str,c);
in order to use glib here.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 14:50:22 +01:00
Patrick Winnertz
fe95221f05 Rewrote the shell_escape function in order to make us of GString and g_string_append_c
As we decided to fully switch back to glb we needed to rewrite this function in order to use
glib functions. This means in this case mostly that *ptr = c; ptr++; is replaced by something
like this: g_string_append(str,c); with str a GString*.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 14:32:09 +01:00
Slava Zanko
e54f318cef Completely removed MHL stuff
Changed all source files relative to remove MHL

Some string-related functions moved into src/util.c

This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
3b8f37b99e Moved some functions out of mhl into src/util.c
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.

Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
0450daf566 Removed type SHELL_ESCAPED_STR in favour of plain char*
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 00:20:19 +01:00
Patrick Winnertz
589ffd0b10 Use g_snprintf instead of snprintf as we switch back to glib
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:49:00 +01:00
Patrick Winnertz
ae987b923e Reverted the use of bool in favour of gboolean
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:46:07 +01:00
Patrick Winnertz
d84586ba82 Reverted the use of mhl_str_dup and use g_strdup instead.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +01:00
Patrick Winnertz
1c287d798d First bunch of mhl_mem_free removal patches
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Patrick Winnertz
155fd328a4 Revert second bunch of mhl patches (see 9b9cab5874)
This reintroduce GString again and drop the use of mhl_mem_free in some files

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:18:38 +01:00
Patrick Winnertz
5920d13810 First bunch of reverting stuff from mhl to switch back to glib
This removes the usage of stdbool.h in favour of mhl/tyes.h as we have to revert everything one by one

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:09:37 +01:00
Patrick Winnertz
bbf507b237 Merge branch '161_drop_bundled_slang'
* 161_drop_bundled_slang:
  Removed bundled slang

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 10:40:59 +01:00
Enrico Weigelt, metux IT service
220f4f4caf manually merged mc-4.6 2009-02-05 07:25:47 +01:00
Enrico Weigelt, metux IT service
a5ba278729 merged in lzma patch from mandriva 2009-02-04 21:16:00 +01:00
Patrick Winnertz
0c7d399300 Reverted Enricos backport from master which removes accidentially slang1.x support
Enrico has accidentially removed the slang1.x support in mc-4.6 branch as
this is a structural change which clearly doesn't belong into mc-4.6.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-04 20:37:00 +01:00
Enrico Weigelt, metux IT service
0c97636212 fixed #240 2009-02-04 01:11:56 +01:00
Enrico Weigelt, metux IT service
be982505cc Merge commit 'origin/mc-4.6' 2009-02-04 00:30:57 +01:00
Enrico Weigelt, metux IT service
03ec5ef574 backported #199 branch 2009-02-04 00:29:28 +01:00
Enrico Weigelt, metux IT service
9b9cab5874 manually merged 234_remove_g_string 2009-02-02 22:39:12 +01:00
Enrico Weigelt, metux IT service
8b38cf44da manully merged 227_replace_g_free 2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
035fa47c06 manually merged 228_replace_g_strdup 2009-02-02 21:28:01 +01:00
Enrico Weigelt, metux IT service
7015de5db5 Merge commit 'origin/236_replace_gboolean' 2009-02-02 21:16:39 +01:00
Enrico Weigelt, metux IT service
0434e3de5d manually merged 235_remove_g_snprintf 2009-02-02 20:53:03 +01:00
Enrico Weigelt, metux IT service
45964f373b replaced gboolean by bool (from mhl/types.h) 2009-02-02 05:07:56 +01:00
Enrico Weigelt, metux IT service
4f9185a3ee Removed bundled slang 2009-02-02 04:23:06 +01:00
Enrico Weigelt, metux IT service
3410eb3229 Merge commit 'origin/mc-4.6' 2009-02-01 22:38:48 +01:00
Enrico Weigelt, metux IT service
48a85a7b97 manually merged 232_fix_init_chown_advanced 2009-02-01 22:37:57 +01:00
Enrico Weigelt, metux IT service
74c5601339 Merge commit 'origin/mc-4.6' 2009-02-01 22:07:03 +01:00
Sergei Trofimovich
6b6d4a222d cleanup: moved int to size_t
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-01 22:44:44 +02:00
Enrico Weigelt, metux IT service
6f9ef0b7be fixed unitialized var in init_chown_advanced() - patch from andrew_b 2009-02-01 20:32:11 +01:00
Enrico Weigelt, metux IT service
6c016bc781 fixed name_trunc() on NULL or empty strings - patch from andrew_b 2009-02-01 20:26:27 +01:00
Enrico Weigelt, metux IT service
e4a4f77ac2 replaced g_snprintf() by snprintf() 2009-02-01 20:03:28 +01:00
Sergei Trofimovich
5ee6f43796 build fix: added missing declaration of mhl_dir_plus_file
./configure --enable-charset && make
    charsets.c: In function 'load_codepages_list':
    charsets.c:51: warning: implicit declaration of function 'mhl_str_dir_plus_file'
    charsets.c:51: warning: assignment makes pointer from integer without a cast

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-01 20:46:18 +02:00
Sergei Trofimovich
df4129517b Merge branch 'mc-4.6'
* mc-4.6: (38 commits)
  mhl: mhl_shell_unescape_buf(): fixed memory array OOB.
  completion: fixed complete already escaped secuences.
  completion: added changelog entry for solved #147
  completion: fixed completion of escaped commands in commandline
  Removed unused char*.
  mhl: added mhl_strmove() function (memmove semantics)
  completion: added escapes in command line on completion
  complete: cleanup: #define to enum INPUT_COMPLETION_FLAGS
  added a new parameter for completion flags to input_new
  fish: cleanup: unboxed quoted strings when generate shell commands
  introduced new type SHELL_ESCAPED_STR for more type safety
  added mhl/types.h which defines bool enum, escape.h now using this type
  Removed unused variable
  Changes for use MHL.
  Fixed bug with renamig/copying files with backshashes in names
  Remove some testing stuff
  Temporarry commit. Fixed completion in browse by directoryes.
  Fixed some memory leaks.
  Add $ and ` for escaping and reorder it according to the ascii values
  Rewrite it to use g_string_append_c instead of some homebrew stuff
  ...
2009-02-01 14:26:54 +02:00
Sergei Trofimovich
ad1abaebfb completion: fixed complete already escaped secuences.
<winnie> ls -lQ /tmp/test
-rw-r--r-- 1 winnie winnie 0 30. Jan 13:05 "a"
-rw-r--r-- 1 winnie winnie 0 30. Jan 13:04 " test\"hallo"
-rw-r--r-- 1 winnie winnie 0 30. Jan 13:04 " test$hallo"
<winnie> and then cat /tmp/test/\ and ESC-tab in subshell...

unescape/escape sequences in command completion (it also solves
completiont of weirdweird escapy commands like ./<escapy-cmd><complete>, like:
$ ls -lQ
-rwxr-xr-x 1 slyfox slyfox 2037 Jan 15 21:18 "  'asd&&\"->build-glib1.sh"

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-01 13:28:31 +02:00
Sergei Trofimovich
ff4de3d66f Merge branch 'mc-4.6' into 147_escaping
* mc-4.6:
  replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
  fixed out-of-tree-builds
  Updated the NEWS file for 4.6.2 and added the bugnumbers behind the items in the list.
  Update for OpenOffice and StarOffice viewer.
  changelog: added entry for python syntax
  syntax: python: keywords update (patch by NNemec) fixes #216
  AC_USE_SYSTEM_EXTENSIONS macro requires autoconf >= 2.60
  po/ru.po: In russian translation, there are some hotkey conficts in menu.
  ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
  Now a trailing slash will only be added in copy & move dialogs if the path itselfs
  copy/move dialog: add trailing '/' to default destination path (fix #181)
  fixed comments to /* ... */
  Not only comment it out but removing it
  Removed unneeded var to make build process a bit cleaner
  Add code snipplet by il.smind which should fix issues with putty and

Conflicts:
	ChangeLog
	mhl/string.h
	src/command.c
	src/complete.c
	src/file.c
	src/util.c
2009-01-31 22:18:19 +02:00
Sergei Trofimovich
60d8c1d615 completion: fixed completion of escaped commands in commandline
Changes:
 * added new flag: INPUT_COMPLETE_SHELL_ESC - forces
   filename completion return escaped names
 * cleaned up src/complete.c: removed global variables in
   favour of completion flags. Code changed respectively.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-31 21:46:32 +02:00
Enrico Weigelt, metux IT service
5f77615b35 Merge commit 'origin/mc-4.6' 2009-01-31 18:20:54 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file() 2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
b407c65b74 manually merged mc-4.6 2009-01-31 06:34:40 +01:00
Enrico Weigelt, metux IT service
f921cc40cd replaced calls to g_strdup() by mhl_str_dup() 2009-01-30 20:10:40 +01:00
Enrico Weigelt, metux IT service
15d7d47c15 replaced g_free() by mhl_mem_free() 2009-01-30 19:28:35 +01:00
Enrico Weigelt, metux IT service
e3a3890a3a fixed out-of-tree-builds 2009-01-30 16:46:44 +01:00
Patrick Winnertz
a5e61d285e Removed unused char*.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-01-30 12:59:23 +01:00
Sergei Trofimovich
e48cb7c89f mhl: added mhl_strmove() function (memmove semantics)
valgrind detected an error in completion path:
==2962== Source and destination overlap in strcpy(0x459F068, 0x459F06A)
==2962==    at 0x4026056: strcpy (mc_replace_strmem.c:268)
==2962==    by 0x808F70B: canonicalize_pathname (string3.h:106)
==2962==    by 0x805ECBA: filename_completion_function (complete.c:125)
==2962==    by 0x805FB35: command_completion_function (complete.c:448)
==2962==    by 0x805EA34: completion_matches (complete.c:552)
==2962==    by 0x8060454: complete (complete.c:735)
==2962==    by 0x809AAC4: handle_char (widget.c:1545)
==2962==    by 0x807867E: midnight_callback (dialog.h:201)
==2962==    by 0x8061B27: dlg_process_event (dialog.c:664)
==2962==    by 0x8061ECE: run_dlg (dialog.c:786)
==2962==    by 0x807996C: main (main.c:1674)

Snippet of man strcpy:
DESCRIPTION
       The  strcpy()  function copies the string pointed to by src, including the terminating
       null byte ('\0'), to the buffer pointed to by dest.  ___The strings may not overlap___,
       and the destination string dest must be  large enough to receive the copy.
We used strcpy to move data chunk in memory: "./foo" -> "foo", etc.

This patch introduces mhl_strmove and fixed canonicalize_pathname.

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-01-30 09:31:28 +02:00
Sergei Trofimovich
17772239ff completion: added escapes in command line on completion
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-29 23:38:59 +02:00
Sergei Trofimovich
455f2dbd66 complete: cleanup: #define to enum INPUT_COMPLETION_FLAGS
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-29 21:13:30 +02:00
Enrico Weigelt, metux IT service
7639b364af added a new parameter for completion flags to input_new 2009-01-29 19:17:43 +01:00
Sergei Trofimovich
abc295cee2 Merge branch 'mc-4.6'
* mc-4.6:
  Now a trailing slash will only be added in copy & move dialogs if the path itselfs
  copy/move dialog: add trailing '/' to default destination path (fix #181)
2009-01-29 01:12:09 +02:00
Patrick Winnertz
66c9fde141 Now a trailing slash will only be added in copy & move dialogs if the path itselfs
doesn't already have a trailing slash.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-01-28 23:54:04 +01:00
Sergei Trofimovich
689164a6bc copy/move dialog: add trailing '/' to default destination path (fix #181)
Problem:
  When user tried to copy/move file (F5/F6) - he could run into trouble if
  destination directory is removed (it can be removed by user from another mc session).
  Operation is performed and(!) file is renamed.
  So when when user issues 'cp /tmp/a.file /tmp/b' - he gets not expected /tmp/b/a.file,
  but /tmp.b !

Solution:
  Add trailing space for destination directory for non-local copy/move(F5/F6) operations.
  So operation, given above will take form: 'cp /tmp/a.file /tmp/b/' disambiguating b
  meaning.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-28 23:31:39 +02:00
Patrick Winnertz
cad6ffd2bb Merge branch 'mc-4.6' 2009-01-27 23:03:06 +01:00
Enrico Weigelt, metux IT service
90763ba82f introduced new type SHELL_ESCAPED_STR for more type safety 2009-01-27 22:27:06 +01:00
Patrick Winnertz
8b593e8398 Removed unused variable 2009-01-27 21:33:04 +01:00
Slava Zanko
38537ddd04 Changes for use MHL.
mhl/escape.h:
    add new function mhl_shell_is_char_escaped()

src/command.c; src/complete.c; src/file.c; src/util.c:
    Changes for use MHL-functions.

src/util.h:
    remove old escape-related declarations of functions
2009-01-27 10:20:35 +02:00
Patrick Winnertz
ea5cfade55 Add code snipplet by il.smind which should fix issues with putty and
mc (mc over ssh on a putty console)
 - to reproduce try this:
    1) run 'putty'; login to remote host
    2) run mc
    3) press key '/' on keypad. You will see menu that is called when you press the F2
    4) Go to 'Learn keys' (simple call dialog)
    5) just exit from 'learn keys' dialog (without any changes)
    6) 3) press key '/' on keypad again. You will see '/' symbol in command line.
2009-01-26 16:21:06 +01:00
Slava Zanko
2cd08d0d84 Fixed bug with renamig/copying files with backshashes in names
* src/util.c: implementation of new function is_escaped_string
* src/util.h: declaration of new function is_escaped_string
* src/file.c: fix o bug :)
2009-01-26 16:16:43 +02:00
Slava Zanko
9e46faab7f Remove some testing stuff 2009-01-26 16:16:42 +02:00
Slava Zanko
a419b71b6e Temporarry commit. Fixed completion in browse by directoryes.
Not fixed completion by commands (fail if command in $PATH contain space)
2009-01-26 16:16:42 +02:00
Slava Zanko
26c9d6d107 Fixed some memory leaks.
Added DOXYGEN-like description to new functions.
2009-01-26 16:16:42 +02:00
Patrick Winnertz
416f7d69fc Add $ and ` for escaping and reorder it according to the ascii values 2009-01-26 16:16:42 +02:00
Patrick Winnertz
7c64c2767b Rewrite it to use g_string_append_c instead of some homebrew stuff 2009-01-26 16:16:42 +02:00
Patrick Winnertz
b48c30e337 Fix escaping functions to also escape the leading whitespace 2009-01-26 16:16:42 +02:00
Patrick Winnertz
985f73c374 Original patch as attached on the bugreport 2009-01-26 16:16:42 +02:00
Patrick Winnertz
4ab17b939f Add $ and ` for escaping and reorder it according to the ascii values 2009-01-26 16:16:42 +02:00
Patrick Winnertz
3263509b9d Rewrite it to use g_string_append_c instead of some homebrew stuff 2009-01-26 16:16:41 +02:00
Patrick Winnertz
2eb9472f99 Fix escaping functions to also escape the leading whitespace 2009-01-26 16:16:41 +02:00
Patrick Winnertz
bcac6584b2 Original patch as attached on the bugreport 2009-01-26 16:16:41 +02:00
Mikhail S. Pobolovets
e3a82ba1d8 Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Automatic new directory(Mkdir, F7) name filling.
Can be configured (on|off) in 'Configure options'.
2009-01-26 13:33:13 +02:00
Slava Zanko
cfba955399 add some 8bit codepages for correct display 2009-01-26 12:20:41 +02:00
Slava Zanko
8a7c7762f7 patches by Rostislav Beneš: mc-30-view
experimental patch, completely different reading file, new cache structure,
shall view text in every encodings (remaped ctrl + t, new dialog need
localization).

1. to avoid backward reading, viewer keeps four following characters from
    file: next, actual and two previous. This is enough to handle new lines
    and nroff fortmatin correctly.
2. cache_line structure, that presents one line in file. cache_line stores,
    where line starts and ends in file,number of line and width of line. Width
    is at most equal to screen width, so longer lines are cached in more
    cache_lines. This makes wrapping text very easy. Cache_lines are stored
    in a linked list. file is loaded into cache_lines sequential, not whole at once.
    It only provides navigation in file.

I found two problems in this solution:
    1. slow first move to end in large files, because can not read files
        backward. (loading in background may help)
    2. it is slow with multibyte characters. I tried to eliminate calling iconv
        to two, but it did not help (iconv is called on every byte). I think
        caching some parts of file will be needed.
2009-01-26 12:20:40 +02:00
Slava Zanko
8ffa3beeb8 patches by Rostislav Beneš: mc-29-vfs
add support for filesystem, that use others encodings than mc (vfs). Now can be
encoding set only manually, but automatic detection is possible. Filename is
converted in mc_readdir and other function translate it back by vfs_translate
added menu etries encodnig in left and rigth menu (localization will be neede)
modified subshell.c to put subshell correct working directoy,
modified ext.c and execute.c to translate filename before running command
there could be one problem, vfs_translate_path does not use something like
path_magic function
2009-01-26 12:18:16 +02:00
Slava Zanko
1eaadfae0b patches by Rostislav Beneš: mc-28-fix
rest of fixes in files cmc.c, main.c (xterm title), panelize.c, subshell.c,
tree.c, tty.c, user.c, util.c, win.c

now, basic mc's function should work well, editor and view are still broken.
2009-01-26 12:17:45 +02:00
Slava Zanko
6f50ee1745 patches by Rostislav Beneš: mc-27-hint
similar problem like help, similiar solution
2009-01-26 12:13:09 +02:00
Slava Zanko
c7581effa3 patches by Rostislav Beneš: mc-26-help
Help was modified to convert help file into terminal encoding
changes in drawing and reading help file
2009-01-26 12:10:50 +02:00
Slava Zanko
722496dd9e patches by Rostislav Beneš: mc-21-hotlist
replace name_trunc, strlen width str_trunc, str_term_width1, add growing string
from strutil.
2009-01-26 12:10:09 +02:00
Slava Zanko
77d6ba8a36 patches by Rostislav Beneš: mc-12-menu
like buttons use menu entries hotkey_t. But menus are staticly defined, so this
change is much bigger. All menu declaration must be edited. follow standard
changes in drawing and handling hotkeys.

now basic mc's functions works in utf-8, remain correct calculation of controls
width in dialogs, replace functions like tolower, toupper,isspace, ... width
functions from strutil or g_ascii variant.
2009-01-26 12:09:23 +02:00
Slava Zanko
d6d99fe6e5 patches by Rostislav Beneš: mc-11-panels
like in input, added multibytes characters buffer for search in panel (ctrl+s)
drawing is simplier, because alignment do directly str_fit_to_term function
from strutil, changed time functions in util to work correctly in utf-8
2009-01-26 12:07:27 +02:00
Slava Zanko
327e8ffe90 patches by Rostislav Beneš: mc-05-check
very similar to button, for text used hotkey_t and changed drawning and
handling hotkey
2009-01-26 12:06:41 +02:00
Slava Zanko
5d626982b0 patches by Rostislav Beneš: mc-40-ncursesw-old
Added support of old ncursesw library
2009-01-26 12:05:43 +02:00
Slava Zanko
8d94909d0f patches by Rostislav Beneš: mc-40-ncurses
Extende support of ncurses
2009-01-26 12:05:43 +02:00
Slava Zanko
b7b74c2f03 patches by Rostislav Beneš: mc-30-view
experimental patch, completely different reading file, new cache structure,
shall view text in every encodings (remaped ctrl + t, new dialog need
localization).

1. to avoid backward reading, viewer keeps four following characters from
    file: next, actual and two previous. This is enough to handle new lines
    and nroff fortmatin correctly.
2. cache_line structure, that presents one line in file. cache_line stores,
    where line starts and ends in file,number of line and width of line. Width
    is at most equal to screen width, so longer lines are cached in more
    cache_lines. This makes wrapping text very easy. Cache_lines are stored
    in a linked list. file is loaded into cache_lines sequential, not whole at once.
    It only provides navigation in file.

I found two problems in this solution:
    1. slow first move to end in large files, because can not read files
        backward. (loading in background may help)
    2. it is slow with multibyte characters. I tried to eliminate calling iconv
        to two, but it did not help (iconv is called on every byte). I think
        caching some parts of file will be needed.
2009-01-26 12:05:43 +02:00
Slava Zanko
1efbe4a18a patches by Rostislav Beneš: mc-29-vfs
add support for filesystem, that use others encodings than mc (vfs). Now can be
encoding set only manually, but automatic detection is possible. Filename is
converted in mc_readdir and other function translate it back by vfs_translate
added menu etries encodnig in left and rigth menu (localization will be neede)
modified subshell.c to put subshell correct working directoy,
modified ext.c and execute.c to translate filename before running command
there could be one problem, vfs_translate_path does not use something like
path_magic function
2009-01-26 12:04:07 +02:00
Slava Zanko
75cf62902d patches by Rostislav Beneš: mc-28-fix
rest of fixes in files cmc.c, main.c (xterm title), panelize.c, subshell.c,
tree.c, tty.c, user.c, util.c, win.c

now, basic mc's function should work well, editor and view are still broken.
2009-01-26 12:04:07 +02:00
Slava Zanko
c121370f94 patches by Rostislav Beneš: mc-27-hint
similar problem like help, similiar solution
2009-01-26 11:54:54 +02:00
Slava Zanko
bd1bc71732 patches by Rostislav Beneš: mc-26-help
Help was modified to convert help file into terminal encoding
changes in drawing and reading help file
2009-01-26 11:49:00 +02:00
Slava Zanko
bc41b5e7fa patches by Rostislav Beneš: mc-25-key
defensive edits, handle only ascii keys
2009-01-26 11:48:11 +02:00
Slava Zanko
1b34b52cb6 patches by Rostislav Beneš: mc-24-achown
added str_term_width1, str_trunc to all chmod / chown dialogs
2009-01-26 11:48:11 +02:00
Slava Zanko
87a8b257ae patches by Rostislav Beneš: mc-23-profile
g_casecmp replaced width str_casecmp
2009-01-26 11:48:11 +02:00
Slava Zanko
018ead6651 patches by Rostislav Beneš: mc-22-info
changes in drawing panel info view
2009-01-26 11:48:11 +02:00
Slava Zanko
779e0e6d40 patches by Rostislav Beneš: mc-21-hotlist
replace name_trunc, strlen width str_trunc, str_term_width1, add growing string
from strutil.
2009-01-26 11:48:10 +02:00
Slava Zanko
26f6eeed8b patches by Rostislav Beneš: mc-20-dir
changes in sorting strings (name, extension), for comparing are created keys
from strings and than their are compared instead of primary strings. (in
reality, keys are created only for case insensitive comparing, case
sensitive compare original strings). In utf-8 shall by keys faster than
compare strings directly. But this need ediding declaration of all sorts
functions.
2009-01-26 11:47:42 +02:00
Slava Zanko
e57e297ffe patches by Rostislav Beneš: mc-19-find
case insensitive search function used from strutil, search only valid filenames
2009-01-26 11:47:42 +02:00
Slava Zanko
eaa2fd4e20 patches by Rostislav Beneš: mc-18-option
Correctly calculate length of utf-8 strings.
2009-01-26 11:47:42 +02:00
Slava Zanko
511fddabb9 patches by Rostislav Beneš: mc-17-layout
Change layout for correct display.
2009-01-26 11:47:42 +02:00
Slava Zanko
f79ea0e917 patches by Rostislav Beneš: mc-16-boxes
Some changes for correct display of boxes.
2009-01-26 11:47:42 +02:00
Slava Zanko
2423fabcf4 patches by Rostislav Beneš: mc-15-dialog
changes in handlig keys,
if key is ascii characters, is clear what to do. But when key is between 0x80 and
0xff, it is impossible say, if is valid, alpha, number, ...
I think, that will be better support multibytes characters directly in message
handler, but is not necessary and my patch do not do that.
2009-01-26 11:47:42 +02:00
Slava Zanko
6accfeae28 patches by Rostislav Beneš: mc-14-wtools
modified wtools.c
2009-01-26 11:47:41 +02:00
Slava Zanko
502b812f0a patches by Rostislav Beneš: mc-13-file
modified move/copy/delete dialogs to work correctly with utf-8
2009-01-26 11:47:41 +02:00
Slava Zanko
4f00496233 patches by Rostislav Beneš: mc-12-menu
like buttons use menu entries hotkey_t. But menus are staticly defined, so this
change is much bigger. All menu declaration must be edited. follow standard
changes in drawing and handling hotkeys.

now basic mc's functions works in utf-8, remain correct calculation of controls
width in dialogs, replace functions like tolower, toupper,isspace, ... width
functions from strutil or g_ascii variant.
2009-01-26 11:47:41 +02:00
Slava Zanko
564c518415 patches by Rostislav Beneš: mc-11-panels
like in input, added multibytes characters buffer for search in panel (ctrl+s)
drawing is simplier, because alignment do directly str_fit_to_term function
from strutil, changed time functions in util to work correctly in utf-8
2009-01-26 11:47:41 +02:00
Slava Zanko
882826b446 patches by Rostislav Beneš: mc-10-buttonbar
change in drawing, buttons now better use whole width of screen
2009-01-26 11:46:32 +02:00
Slava Zanko
e68c648af9 patches by Rostislav Beneš: mc-09-groupbox
change drawing to be safer
2009-01-26 11:46:32 +02:00
Slava Zanko
8c673585ec patches by Rostislav Beneš: mc-08-listbox
realy simple change in drawing
2009-01-26 11:46:31 +02:00
Slava Zanko
9c9ef5f3e8 patches by Rostislav Beneš: mc-07-label
change only in drawing
2009-01-26 11:46:31 +02:00
Slava Zanko
7f71be0d63 patches by Rostislav Beneš: mc-06-input
in input widget I made a lot of changes:
    1. rename some members in WInput to reflect more their functions
       (field_len -> field_width, ...)
    2. buffer for reading multibytes characters - charbuf, (taken from UTF-8
       patch)
    3. modified insert_char to accept mulstibytes characters, drawing changed
    4. works only with valid strings, str_fix_string used to assure that
       input->buffer is valid

changes in complete.c:
    - some iteration strings with ++/-- replaced with str_next_char,
    str_prev_char, where was needed. ++ was offset oriented, but str_next_char
    use directly referecne (char *), so result is not extra beatiful in every
     cases
    - other buffer for multibytes characters
    - complete only valid filenames
2009-01-26 11:46:31 +02:00
Slava Zanko
9450950fd4 patches by Rostislav Beneš: mc-05-check
very similar to button, for text used hotkey_t and changed drawning and
handling hotkey
2009-01-26 11:46:31 +02:00
Slava Zanko
8d6efd4cd0 patches by Rostislav Beneš: mc-04-radio
all options of radio box are stored in an array of hotkey_t, so radio box has own
copy of options now (in original mc has only a reference to options), changed
drawing and handling hotkey
2009-01-26 11:46:31 +02:00
Slava Zanko
9810380e9a patches by Rostislav Beneš: mc-03-button
text of button stored in hotkey_t instead of char*, modified achown.c, because
access directly button text, change in drawing button adn handling hotkey
2009-01-26 11:46:31 +02:00
Slava Zanko
55be4b67cb patches by Rostislav Beneš: mc-02-hotkey
add new structure hotkey_t for storings caption with hotkey in buttons, menus,...
contains three strings - start, hotkey, end. So hotkey could be any characters,
but mc's message handles works correct only with ascii characters.
for me is working with hotkey_t easier than how are stored hotkeys in original
mc.
2009-01-26 11:46:31 +02:00
Slava Zanko
2678e889b1 patches by Rostislav Beneš: mc-01-api
add functions for working with strings
some functions are implemented directlu in strutil.c, others have ascii, 8bit
or utf-8 variant. (8bit means singlebyte encodings, where all characters have
width one). Mc autodetects terminal encoding at start and chooses right
variant. If does not know terminal encoding, chooses ascii variant.

contains functions:
    1. for translation strings and growing strings
    2. for working with characters (next char, prev char, length in
       characters, isspace, isalnum, ...)
    3. prepeare for display, replace invalid characters with questionmark,
       unprintable with dot, left / right / center align
    4. comparing strings

in future all string function from util should be moved into strutil, some
function from util have new variant in strutil.
2009-01-26 11:46:30 +02:00
Slava Zanko
1d3ffb0e29 patches by Rostislav Beneš: mc-00-slang.patch
Check if libslang support UTF-8
2009-01-26 11:46:30 +02:00
Patrick Winnertz
881ff40b3d Merge branch 'mc-4.6' 2009-01-26 10:30:14 +01:00
Patrick Winnertz
74dadcc258 Added rev3 of the patch attached to the bugreport 2009-01-26 00:34:50 +01:00
Patrick Winnertz
481b0a34ea Merge branch 'mc-4.6' 2009-01-25 16:23:43 +01:00
Patrick Winnertz
da74735548 Merge branch '35_view_dir_update' into mc-4.6
Conflicts:
	ChangeLog
2009-01-25 16:23:26 +01:00
Enrico Weigelt, metux IT service
7cef5b112e Merge commit 'origin/50_history_sections.metux' 2009-01-25 07:00:32 +01:00
Enrico Weigelt, metux IT service
9ac56b58ac fixed missing history.h include 2009-01-24 21:59:58 +01:00
Enrico Weigelt, metux IT service
0dcb057459 separated out history section names to history.h 2009-01-24 21:51:29 +01:00
Enrico Weigelt, metux IT service
b9b09436c4 Merge commit 'origin/50_history_section_names' into 50_history_sections.metux 2009-01-24 21:26:41 +01:00
Enrico Weigelt, metux IT service
b1d848b786 fixed #35 2009-01-24 21:06:15 +01:00
Enrico Weigelt, metux IT service
7fae75c0d6 merged git 174_4.6_mandriva_pty_closeonexec 2009-01-24 20:26:40 +01:00
Enrico Weigelt, metux IT service
f072bf6d5c merged 174_4.6_mandriva_pty_closeonexec 2009-01-24 20:24:14 +01:00
Patrick Winnertz
50afa35d28 Removed conflict markers which were not seen by metux 2009-01-24 10:48:26 +01:00
Enrico Weigelt, metux IT service
5d150562aa merged 158_message_codes branch 2009-01-24 04:53:51 +01:00
Slava Zanko
22fada9ce0 History sections names:
Make names of sections with function name as prefix string.

for example:
[inp:mc_mkdir Enter directory name ]
0=...
2009-01-20 00:57:09 +02:00
Enrico Weigelt, metux IT service
c3a1d292fd added patch from ticket 148 2009-01-19 22:09:54 +01:00
Patrick Winnertz
168526d242 Merge branch 'mc-4.6' 2009-01-18 23:13:25 +01:00
Enrico Weigelt, metux IT service
9f369abe25 added mandriva patch: subshell pty close-on-exec 2009-01-16 02:17:57 +01:00
Patrick Winnertz
a144f2e4f6 Apply patch to fix localised history headers to mc-4.6 branch.
This is bad as if the localised string changed or you start mc
in another language your history will be lost.
2009-01-14 01:01:18 +01:00
Patrick Winnertz
aed7edf0f6 Removed some unused vars and functions 2009-01-12 22:47:05 +01:00
Patrick Winnertz
bcab304c4b Add the unused pointer again as this doesn't belong into this fix. 2009-01-12 21:47:58 +01:00
Enrico Weigelt, metux IT service
f516d1c1d1 merged in: 155_want_widgets_METUX 2009-01-12 00:35:21 +01:00
Enrico Weigelt, metux IT service
53627743b4 * main.c, main.h, main-widgets.h, filegui.c, layout.c, screen.c:
moved main widget declarations into main-widgets.h and
  removed the WANT_WIDGETS symbol
2009-01-10 21:30:12 +01:00
Enrico Weigelt, metux IT service
ff9ff2058d Reverted accidentially committed drop-slang change ;-o 2009-01-10 20:53:19 +01:00
Enrico Weigelt, metux IT service
154feb5160 2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
* edit/editcmd.c:
    * src/achown.c src/background.c src/boxes.c src/chmod.c:
    * src/chown.c src/cmd.c src/command.c src/dir.c src/execute.c:
    * src/ext.c src/file.c src/filegui.c src/find.c src/help.c:
    * src/learn.c src/main.c src/panelize.c src/screen.c:
    * src/selcodepage.c src/subshell.c src/tree.c src/user.c:
    * src/utilunix.c src/view.c:
    * vfs/cpio.c vfs/direntry.c vfs/extfs.c vfs/fish.c vfs/ftpfs.c:
    * vfs/mcfs.c vfs/sfs.c vfs/smbfs.c vfs/tar.c vfs/undelfs.c:
    * vfs/utilvfs.c vfs/vfs.c:

    Changed message type codes on calls to message(), query_dialog(),
    close_error_pipe() from numeric IDs to symbols D_ERROR, D_NORMAL
2009-01-10 14:13:56 +01:00
Patrick Winnertz
197973ccf2 Applied patch from metux on git - needed to fix some stuff manually.
This branch is based on mc-4.6
2009-01-10 11:53:20 +01:00
Enrico Weigelt, metux IT service
f30e0fe86e removed bundled slang 2009-01-07 14:24:33 +01:00
Patrick Winnertz
5411b79dcf Merge branch 'master' of ssh://midnight-commander.org:2222/git/mc 2009-01-05 16:59:23 +01:00
Patrick Winnertz
dcd57a34ef Removed .cvsignore files as we don't need them any longer 2009-01-05 16:58:44 +01:00
Slava Zanko
5deebd49a8 remove compatibility_move_mc_files stuff 2009-01-05 00:37:59 +02:00
Slava Zanko
aad7c6c317 Added .svnignore files (same as .cvsignore) 2008-12-28 23:27:03 +02:00
Roland Illig
281ec8b875 * x11conn.c (x11_available): If the X11 shared library cannot be
found (maybe because there is neither an .la file nor a .so
	symlink), try libX11.so.6 explicitly. Fixes Bug #24505.
2008-12-19 11:36:48 +00:00