Commit Graph

8747 Commits

Author SHA1 Message Date
Slava Zanko
9e08f22d67 Merge branch '1423_fail_to_configure'
* 1423_fail_to_configure:
  Ticket #1423 ([FreeBSD] Fail to compile with option '--with-screen=slang' with already installed slang library)
2009-07-28 16:49:46 +03:00
Slava Zanko
24e81db0dc Ticket #1423 ([FreeBSD] Fail to compile with option '--with-screen=slang' with already installed slang library)
Fixed error with termcap detecting.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-28 15:05:43 +03:00
Slava Zanko
b069c3b8bd Merge branch '1423_FreeBSD_Slang_not_found'
* 1423_FreeBSD_Slang_not_found:
  Removed unneded check for iconv functions. MC use glib functions for
  Fixed test conditions in m4 files for more compability
  Add support of csh (used on FreeBSD)
  Ticket #1423 (Fail to compile with option '--with-screen=slang')
2009-07-27 13:50:12 +03:00
Slava Zanko
fb52d1661e Removed unneded check for iconv functions. MC use glib functions for
recode charsets.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00
Slava Zanko
59f0b4ca49 Fixed test conditions in m4 files for more compability
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00
Slava Zanko
44bb248ae5 Add support of csh (used on FreeBSD)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00
Slava Zanko
66b91538a5 Ticket #1423 (Fail to compile with option '--with-screen=slang')
Fix issue:
Added additional check for this place.

Reason: If slang installed into /usr/local path, then ./configure
script stopped with 'Slang library not found' error

Also added new two options to configure script:
 --with-slang-includes=PATH
 --with-slang-libs=PATH

Now libslang finds in (by order):
 * --with-slang-includes and --with-slang-libs
 * /usr
 * /usr/local

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00
Andrew Borodin
0654b48201 Merge branch '1421_file_mask_dialog_memleak'
* 1421_file_mask_dialog_memleak:
  Fixed memory leaks in file_mask_dialog() function.
2009-07-26 09:57:27 +04:00
Andrew Borodin
d0b4830e0f Fixed memory leaks in file_mask_dialog() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-07-26 09:57:08 +04:00
Slava Zanko
70dcbb2020 Merge branch '1422_remove_gnu_specific'
* 1422_remove_gnu_specific:
  maint/version.sh: added quoting guards file variables
  Remove GNU specific option from version.sh
2009-07-26 01:21:47 +03:00
Sergei Trofimovich
1e94073c2d maint/version.sh: added quoting guards file variables
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-25 17:22:53 +03:00
Stan. S. Krupoderov
2967f4434a Remove GNU specific option from version.sh 2009-07-25 18:03:09 +04:00
Slava Zanko
d40065de01 Merge branch '1389_code_cleanup'
* 1389_code_cleanup:
  little reorganisation key_name_conv_tab array
  Avoid warning in src/search/regex.c about signed and unsigned types
  Fixed excaping of '%' symbol in edit_complete_word_cmd() function
  fixed compiler hints: -Wwrite-strings option helped a lot
  file: added x_basename cast as we know the string is mutable
  view: fixed compile hint: char * -> const char *
  fixed warning: stray ',' at the end of enum
  src/strescape.{c,h}: sanitized fn proto to keep in sync with rest of code
  src/search fixed variable declaration and code mix
  src/screen.c: fixed warning hint: char * -> const char *
  tcc build fix: fixed c99 external constants
  tcc build fix: popt: added hack for tcc's alloca()
  completion: fixed multiple warnings: char * -> const char *
  Fix one compiler warning in setup.c
  Remove one argument for format,in order to avoid a compiler warning
  Fix compiler warning about different signedness of pointers in editcmd.c
  Remove unneeded vars in edit/edit.c to avoid compiler warnings
2009-07-17 12:00:19 +03:00
Ilia Maslakov
97dd64e27f little reorganisation key_name_conv_tab array 2009-07-17 12:00:03 +03:00
Slava Zanko
f114fd4135 Avoid warning in src/search/regex.c about signed and unsigned types
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-17 12:00:03 +03:00
Slava Zanko
f67fcfb94f Fixed excaping of '%' symbol in edit_complete_word_cmd() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-17 12:00:03 +03:00
Sergei Trofimovich
f050f5e686 fixed compiler hints: -Wwrite-strings option helped a lot
Some crufty ugly APIs (slang stuff, putenv) now have explicit (char*) casts.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:03 +03:00
Sergei Trofimovich
c91344770d file: added x_basename cast as we know the string is mutable
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:03 +03:00
Sergei Trofimovich
be343e3107 view: fixed compile hint: char * -> const char *
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:03 +03:00
Sergei Trofimovich
ea40afeef5 fixed warning: stray ',' at the end of enum
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
3a7de274e0 src/strescape.{c,h}: sanitized fn proto to keep in sync with rest of code
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
16811ed607 src/search fixed variable declaration and code mix
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
798205ce07 src/screen.c: fixed warning hint: char * -> const char *
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
2e7808f63c tcc build fix: fixed c99 external constants
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
e2cb595273 tcc build fix: popt: added hack for tcc's alloca()
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-07-17 12:00:02 +03:00
Sergei Trofimovich
a608322f24 completion: fixed multiple warnings: char * -> const char *
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-07-17 12:00:02 +03:00
Patrick Winnertz
bfdf10127c Fix one compiler warning in setup.c
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-07-17 12:00:02 +03:00
Patrick Winnertz
9f4b6d4b2f Remove one argument for format,in order to avoid a compiler warning
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-07-17 12:00:02 +03:00
Patrick Winnertz
2a9faab6e4 Fix compiler warning about different signedness of pointers in editcmd.c
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-07-17 12:00:01 +03:00
Patrick Winnertz
bada6849cd Remove unneeded vars in edit/edit.c to avoid compiler warnings
Signed-off-by: Patrick Winnertz <winnie@debian.org>

edit: cleanup: moved variable declaration to begin of block
edit: have_charset: added explicit variable declarations

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>

fix not initialized variable 'cw'
fix variables 'cw', 'utf_ch', make more safety algorithm.
2009-07-17 12:00:01 +03:00
Sergei Trofimovich
0bffb32dd1 Merge commit 'origin/1413_overly_quoted_fish_filenames'
* commit 'origin/1413_overly_quoted_fish_filenames':
  Ticket #1413 (overly quoted escaped pathnames)
2009-07-16 14:57:06 +03:00
Sergei Trofimovich
d54ea1e079 Ticket #1413 (overly quoted escaped pathnames)
> "ls -l \"/%s\" >/dev/null 2>/dev/null\n"
and longstanding one
    > "ls $LSOPT \"/%s\" 2>/dev/null | grep '[cbt]' | (\n"

Fixing again.

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-07-16 09:40:34 +03:00
Ilia Maslakov
3596ceeb9f Ticket #1402 (mcedit replace regression)
fix: issue in 'while'
    remove 'Once' button as 'atavism'
    add 'from' field in confirm dialog

Fixed layout of place confirmation dialog in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-07-16 05:42:36 +00:00
Slava Zanko
ddad204341 Merge branch '1395_copy_to_fish_broken'
* 1395_copy_to_fish_broken:
  Fixed segfault with fish operations
  Ticket #1395 (Copying to fish is broken)
2009-07-15 13:59:45 +03:00
Slava Zanko
33c0d6f022 Fixed segfault with fish operations
Reason:
If some directory in fish is a read-only, then mc will crashed

Issue:
In fish_mkdir added additional check if directory was created.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-15 13:59:25 +03:00
Slava Zanko
9ee5f318ab Ticket #1395 (Copying to fish is broken)
No any files was copyed into fish.

Issue:
Files was try to create with O_EXCL flag. On fish it's fail
Now for fish flag O_EXCL will dropped.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-15 13:59:25 +03:00
Slava Zanko
f830dcc0a8 Merge commit 'origin/1397_master_broken'
* commit 'origin/1397_master_broken':
  Ticket #1397 (Broken build of project without --enable-charset option)
2009-07-14 13:55:25 +03:00
Ilia Maslakov
d92bbf59b6 Ticket #1403 (segfault mcedit after search)
fix: non redefined cp_source after autocorrect codeset
2009-07-13 19:09:50 +00:00
Ilia Maslakov
59ac0537e6 Ticket #1401 (extension for key sequence in mc.lib)
add needed seq in win.c
    changed algorithm lookup_key
2009-07-13 18:59:28 +00:00
Slava Zanko
a41156c007 Ticket #1397 (Broken build of project without --enable-charset option)
Fixed:
 * Call of str_convert_to_input() now in HAVE_CHARSET block
 * Fixed recoding of search string if charsets in use.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-13 12:53:15 +03:00
Slava Zanko
2d01dd04ae Merge branch '391_history_is_broken'
* 391_history_is_broken:
  Ticket #391 (history is broken).
2009-07-13 11:53:50 +03:00
Slava Zanko
cf363ad022 Ticket #391 (history is broken).
Reason:
glib ini-function works only with UTF-8 in files. Bug raised if system charset not UTF-8.

Issue:
 * recode to utf-8 before saving values of ini-params and
 * recode from utf-8 after reading values of ini-params

Also fixed:
 * if system codepage is not UTF-8, panelize named is always in utf-8 and seems as non-sense string.
 * Recode panelize command names into system codepage from utf-8
 * global variable utf8_display now initialized in any case (non-relative to ENABLE_CHARSET)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-13 11:53:16 +03:00
Slava Zanko
944d1cf961 Merge branch '393_damn_slow_search_viewer'
* 393_damn_slow_search_viewer:
  Ticket #393 (slow search in viewer)
2009-07-09 09:45:41 +03:00
Slava Zanko
ce1d670972 Ticket #393 (slow search in viewer)
* Replace search prepare algorithm
    * Added function for update search status.
    * Added callback for update search status into external places
    * Added new message box 'Seeking to search result' at end of search process
    * Fixed search in file with different charset.
    * Fixed backward search in nroff'ed text
    * Added named enum for return values of callback functions for search
    * Fixed wrong search with 'pcre' search engine.
    * Fixed search in underlined text.
    * Fixed wrong offset of nroff'ed text where text is underlined.
    * Fixed calculating of next search position. Fixed double-search one text in nroff'ed area.
    * Last found text stay selected if no more found.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-09 09:44:44 +03:00
Patrick Winnertz
944e137123 Merge branch '1391_segfault_on_empty_codepages'
* 1391_segfault_on_empty_codepages:
  Ticket #1391: fill codepages list if mc.charsets file cannot be read.
  Prevent mc from crashing when codepages is empty because of an bogus installation
2009-07-07 19:17:09 +02:00
Slava Zanko
6e9059e2f3 Merge branch '1396_with_search_engine'
* 1396_with_search_engine:
  Fixed bug in calculate version code when run under FreeBSD
  Ticket #1396 (need build option --with-search-engine for select regex engine)
2009-07-07 12:32:42 +03:00
Slava Zanko
514cdf8340 Fixed bug in calculate version code when run under FreeBSD
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-07 11:17:23 +03:00
Slava Zanko
1b03ffad49 Ticket #1396 (need build option --with-search-engine for select regex engine)
Added '--with-search-engine' into configure script.
Changed behavior of lib_pcre m4-module. Now used pkg-config

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-07 11:17:10 +03:00
Andrew Borodin
1b4bc8b91d Ticket #1391: fill codepages list if mc.charsets file cannot be read.
If mc.charsets file cannot be read, add default ASCII codepage
to codepages list.
Some code clean up.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-07-07 12:05:57 +04:00
Ilia Maslakov
348ab7303f Ticket #1384 (Whitespace highlighting should be optional)
Add Denis Vlasenko patch for draw options in dialog
    Add hotkey M-S-<minus> as swicher for show tabs and tws
2009-07-07 05:53:52 +00:00