Commit Graph

8542 Commits

Author SHA1 Message Date
Patrick Winnertz
1448fb99d6 Merge branch '346_fix_faq'
* 346_fix_faq:
  Fixed URI to list of build requrements
  Fixed also some outdated informations in doc/HACKING
  Removed some trailing whitespaces in FAQ
  Fixed also some outdated informations in doc/HACKING
  Ticket 346 (git master: FAQ is outdated)
2009-06-30 23:08:56 +02:00
Slava Zanko
345c31baed Fixed URI to list of build requrements
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-30 23:38:11 +03:00
Slava Zanko
388bcc3520 Fixed also some outdated informations in doc/HACKING
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-30 23:12:10 +03:00
Patrick Winnertz
01bd446bdf Removed some trailing whitespaces in FAQ
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-06-30 22:03:49 +02:00
Patrick Winnertz
d8965153a7 Fixed also some outdated informations in doc/HACKING
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-06-30 22:03:04 +02:00
Patrick Winnertz
1759c1124f Ticket 346 (git master: FAQ is outdated)
Fixed some outdated informations in the FAQ

 - about main site
 - about maillists
 - about configure options
 - glib version which is needed

Signed-off-by: Patrick Winnertz <winnie@debian.org>

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-30 22:25:59 +03:00
Ilia Maslakov
d205e724f0 Ticket #343 (automatically detect user's charset) reopened
fix: check if mc is run as viewer or editor mode.
fix: little memory leak
fix: dlg_erase now check input parameters
2009-06-30 18:19:05 +00:00
Mikhail S. Pobolovets
9e92f803cc FIX: Completion in editor doesn't work with subwords ended with '_'
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-06-29 14:14:25 +03:00
Andrew Borodin
bbbb4d6daf Ticket #1378: removed duplication of command line histroy.
Modified histroy_cmd() function: now it shows history of command
line widget, not yet another dialog window.
Modified menu entry.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-27 09:09:01 +04:00
Sergei Trofimovich
4ff5d7c0a9 Merge commit 'origin/1379_viewer_hangup'
* commit 'origin/1379_viewer_hangup':
  close_error_pipe: return value instead of garbage
  viewer: Ticket: Viewer(F3) hangups at '.patch' viewing
2009-06-26 19:05:28 +03:00
Sergei Trofimovich
c07b5efe45 close_error_pipe: return value instead of garbage
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-26 13:39:47 +03:00
Sergei Trofimovich
e65b0f1986 viewer: Ticket: Viewer(F3) hangups at '.patch' viewing
As stderr closes before process shutdown we get hangup trying to
read last data from stderr. Try to read at least something before closing
stderr.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-26 13:29:05 +03:00
Andrew Borodin
b72e83193a Merge branch '394_history_file'
* 394_history_file:
  History: don't drop valid keys after 1st invalid one.
  REBASE: Need to join to previous commit
  Fixed return value of mc_config_new() function
  Ticket #394: handle the empty ~/.mc/history file correctly.
2009-06-26 10:17:20 +04:00
Andrew Borodin
66a15c9163 History: don't drop valid keys after 1st invalid one.
Old behavior: while reading some history from ~/.mc/history file,
the all keys after 1st invalid key are ignored.

New behavior: ignored invlaid keys only. All valid keys are
get.

Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
2009-06-26 10:16:50 +04:00
Slava Zanko
372d3c6cd3 REBASE: Need to join to previous commit 2009-06-26 10:16:50 +04:00
Slava Zanko
709150fe77 Fixed return value of mc_config_new() function
Also *len parameter always setting up in mc_config_get_keys() and mc_config_get_groups() functions.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-26 10:16:50 +04:00
Andrew Borodin
5a67008194 Ticket #394: handle the empty ~/.mc/history file correctly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-26 10:16:50 +04:00
Andrew Borodin
d5f1442438 Ticket 1375: new design of 'Find File' dialog.
* src/find.c:
  + New design of 'Find File' dialog.
  + odification of search results dialog: listbox
    which contains search results is not scrolled now.
    New behavior avoids dialog blinking :) and allows the walk
    through the list during search.
    Added counter of found items.
  + Check regexp before search.
  + For glib >= 2.14.0, use GQueue for directory queue.
  + Fixed memory leak.
  + Some optimization.
  + More type accuracy.
  + Formatting. Fixed typo. Clean up.

* src/widget.c:
  (listbox_select_by_number): don't operate with non-existing list.

* src/search/*:
  + (mc_search_prepare): new function that allows check if regexp
    is valid before search (Slava Zanko).
  + Removed redundant chek for g_free ().
    Use g_free() instead of free().

Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
2009-06-25 10:56:16 +04:00
Ilia Maslakov
9283c14213 Ticket #1376 (TAGS parser crashes)
fix: incorrect parse invalid input parameters in etags_set_definition_hash
2009-06-24 14:26:37 +00:00
Slava Zanko
105c56fb4d Merge branch 'master' of ssh://www.midnight-commander.org:2222/git/mc
* 'master' of ssh://www.midnight-commander.org:2222/git/mc:
  viewer: Ticket: #410 certain binary treated-as-roff files cause viewer hangup
2009-06-24 12:23:36 +03:00
Slava Zanko
78f01a3a9a Merge branch '72_preserve_attributes'
* 72_preserve_attributes:
  Copy files/dirs: If 'Preserve attributes' checkbox is unchecked, then permissions of files and dirs will be set relative to current umask
  Added recognizing of filesystem type and automatically toggle 'on' or 'off' checkbox 'Preserve attributes' in file copy/move dialog
  Fix chmod complaints when "preserve attributes" unchecked
2009-06-24 12:21:26 +03:00
Slava Zanko
f37120e8fc Copy files/dirs: If 'Preserve attributes' checkbox is unchecked, then permissions of files and dirs will be set relative to current umask
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-23 11:23:19 +03:00
Sergei Trofimovich
40438bfd0f viewer: Ticket: #410 certain binary treated-as-roff files cause viewer hangup
Hangup state:
viewer executes program an checks whether it emits data from stdout
or stderr and receives them via UNIX pipes. Viewer reads stdout
synchronously (fread). Inferior program tries to write large chunk
to stderr when viewer is blocked on stdout read. We get a deadlock:

* viewer is blocked reading from empty nonclosed stdout
* inferior app is blocked by full stderr pipe

To prevent this we close stderr right after first read byte from stdout.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-22 21:16:10 +03:00
Slava Zanko
ce129506f6 Added recognizing of filesystem type and automatically toggle 'on' or 'off' checkbox 'Preserve attributes' in file copy/move dialog 2009-06-22 17:51:43 +03:00
Pavel Tsekov
f856eeb0ea Fix chmod complaints when "preserve attributes" unchecked
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-22 17:51:43 +03:00
Ilia Maslakov
f5980a332d Merge branch '406_show_filter'
* 406_show_filter:
  Fixed filter by partial file name. Now filter applied to full filename.
  Ticket #406 (show filter in panel header)
2009-06-22 14:12:19 +00:00
Slava Zanko
07f0f92d24 Fixed filter by partial file name. Now filter applied to full filename.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-22 13:55:20 +00:00
Ilia Maslakov
22c875657a Ticket #406 (show filter in panel header)
add: draw filter in panel header near "Name" if format  '''Name [filter]'''
2009-06-22 13:55:20 +00:00
Ilia Maslakov
522f310871 Ticket #1368 (Incorrect detected start of the word)
fix: removed char "_" in edit_find_word_start as SOW (start of the word)
add more chars as SOW
2009-06-22 12:34:00 +00:00
Slava Zanko
63786f2b7f Merge branch '1366_shell_patterns'
* 1366_shell_patterns:
  Ticket #1366 (shell patterns: '[*' does not mark files started with '[')
2009-06-22 13:41:09 +03:00
Slava Zanko
b6b446076c Ticket #1366 (shell patterns: '[*' does not mark files started with '[')
Description:
Try to highlight files [1], [2] and [3]:
Gray-+
[* (or \[*)
Enter
Nothing marked

Fix solution:
 * With glob search backshash was escaped. Now this behaviour canceled.
 * Fix escaping of GLOB patterm search string.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-22 13:40:01 +03:00
Ilia Maslakov
a5f4a672f6 Ticket #426 (compilation failure)
fix: fogoten #ifdef HAVE_CHARSET
2009-06-20 16:08:40 +00:00
Andrew Borodin
71410e1e4c Merge branch '424_load_filepos'
* 424_load_filepos:
  Ticket #424:  viewer doesn't apply the file position.
2009-06-20 18:38:45 +04:00
Andrew Borodin
9c49ffd697 Ticket #424: viewer doesn't apply the file position.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-20 17:35:59 +04:00
Ilia Maslakov
d69d0da228 Merge branch '192_xterm_title'
* 192_xterm_title:
  Ticket #192 (show username+hostname in xterm title)
2009-06-20 12:43:20 +00:00
Ilia Maslakov
40558673b6 Ticket #192 (show username+hostname in xterm title)
add: draw [user@hostname] in xterm title
add: pwd.h header into main.c
2009-06-20 12:41:41 +00:00
Ilia Maslakov
d737b9151f Ticket #343 (automatically detect user's charset)
add show warnind dialog if system and display or source codeset are diferent
add global option skip_check_codeset if set then warnind window not show
    set display_codepage, source_codepage = system locale
2009-06-20 12:10:37 +00:00
Slava Zanko
d9a72ea8c9 version.sh: Ticket 411 (make loops, rerunning configure ad infinitum)
version.h is dumped even when git is unavailable or broken
buildbot dislikes to fetch tags (git fetch --tags) => version.sh failure.
version.sh refused to create version.h when git is unavailable.

All those cases are hopefully fixed.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-20 14:45:09 +03:00
INode
4a58bd3a14 Ticket #372 (ignores some menu entries)
fix: ignores some (but not all) of menu entries.
2009-06-19 20:09:45 +00:00
Slava Zanko
a93e6a60b5 Merge branch '383_editor_autocomplete'
* 383_editor_autocomplete:
  Ticket #383 (Autocompletion in editor don't work)
  Autocomplete in editor now works with all words, not only a-zA-Z
  Fixed autocompletion in editor
2009-06-19 22:07:26 +03:00
Slava Zanko
644c537084 Ticket #383 (Autocompletion in editor don't work)
Description:

Autocomplete doesn't find the word at the begin of file.

Fix issue: search words for autocomplete start with 1 byte offset (start=0 was mean start=1)
Now fixed. Also, removed forgot debug code.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 22:06:41 +03:00
Slava Zanko
a13d36a55c Autocomplete in editor now works with all words, not only a-zA-Z
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 22:06:41 +03:00
Slava Zanko
5ab3ba58c9 Fixed autocompletion in editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 22:06:41 +03:00
Slava Zanko
a3fcab9f50 Merge branch '419_broken_search_glib_less_2_14'
* 419_broken_search_glib_less_2_14:
  Now project don't compile if version of glib less than 2.14 and no have pcre library
  Removed support of POSIX regexp. Now handled only glib-regexp and pcre
  Ticket 419: (search broken in editor/viewer on glib <2.14)
2009-06-19 21:48:05 +03:00
Slava Zanko
fbcacf4044 Now project don't compile if version of glib less than 2.14 and no have pcre library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:38 +03:00
Slava Zanko
38601bd224 Removed support of POSIX regexp. Now handled only glib-regexp and pcre
POSIX regexp don't support search by code of character (like \x<HEX>).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:31 +03:00
Slava Zanko
de248cb274 Ticket 419: (search broken in editor/viewer on glib <2.14)
Added forgotten include of m4.include/ax_path_lib_pcre.m4 file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:03 +03:00
Sergei Trofimovich
1b5ae972bb Merge commit 'origin/231_bg_shell_fish_support'
* commit 'origin/231_bg_shell_fish_support':
  Start on fish (Friendly Interactive SHell) support.
2009-06-19 14:27:18 +03:00
Andrew Borodin
162bab7b70 Merge branch '260_fix_includes'
* 260_fix_includes:
  Fixed includes.
  edit/edit.h: added function prototypes.
  vfs/gc.c src/widget.c: removed unneeded #include's.
  Fixed missed #include's after rebase to current master.
  ChangeLog: added entry.
  Added Changelog entry.
  Removed unnecessary #include directives and USE_INTERNAL_EDIT define.
  further include file fixups
  fixed several missing #include's
2009-06-19 14:39:15 +04:00
Andrew Borodin
68354273a3 Fixed includes.
Added missed includes. Fixed includes after rebase.

Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
2009-06-19 14:36:36 +04:00