Commit Graph

9026 Commits

Author SHA1 Message Date
Ilia Maslakov
b819359535 Ticket #1558 (Search backwards behaves erratically)
fix: backward search. When the cursor set on the begin of the word,
         search found this word, but should not.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-24 07:04:52 +00:00
Ilia Maslakov
7e13f0a5c1 edit/editdraw.c: removed unused variable
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich
67d5824320 src/widget.c: sanitized sprinkled 'const' qualifiers
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich
5f5d3b8caf src/tty/: sanitized sprinkled 'const' qualifiers
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich
b933da347e vfs/fish.c: removed unused variable
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin
179e516c2a VFS: moved vfs_translate_url() declaration to the public scope.
Fixed missed includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin
510265b41c Fixed compiling warnings.
src/tty/key.c (get_modifier): comparison between pointer and integer
src/tty/win.c: missed #include <stdlib.h>
src/dialog.c (add_widget): control reaches end of non-void function
src/widget.c: missed #include "layout.h"

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin
6ff684c8ce Merge branch '1555_help_buttonbar_draw'
* 1555_help_buttonbar_draw:
  Ticket #1555: draw buttonbar of help dialog.
2009-08-24 09:21:55 +04:00
Andrew Borodin
25ab169f45 Ticket #1555: draw buttonbar of help dialog.
Fixed Help window to be resizable.
Fixed draw of Help button bar.
Moved WButtonBar widget from dialog.c to dialog.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:21:37 +04:00
Ilia Maslakov
9b86ff4530 Merge branch '1487_whole_words'
* 1487_whole_words:
  add "Whole words" into man page.
  Ticket #1487 (Whole words search)
2009-08-23 14:43:05 +00:00
Ilia Maslakov
358871ef0c add "Whole words" into man page.
add "Whole words" into the russian man.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-23 14:40:04 +00:00
Ilia Maslakov
156b79609c Ticket #1487 (Whole words search)
thanx Daniel Borca <dborca@yahoo.com> for the patch

    * fix special_chars in regex.c
    * add whole_words into mc_search_struct
    * add 'Whole words' into 'Search', 'Replace' 'File find' dialogs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-22 11:24:00 +00:00
Ilia Maslakov
7ef283975b Ticket #1519 (Editor Search/Replace in selection only)
thanx dborca <dborca@yahoo.com> for the patch

    * add option 'In selection' into 'Search' and 'Replace' dialogs
    * changed search and replace algorithm
    * fix search start position if cursor placed beyond marked text.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    * Fixed handle of 'In selection' option in 'search' dialog.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-22 10:00:33 +00:00
Slava Zanko
f586f770a1 Merge branch '1515_bug_in_normal_search'
* 1515_bug_in_normal_search:
  Ticket #1515: Bug in normal search
2009-08-21 16:55:43 +03:00
Daniel Borca
8a797248b0 Ticket #1515: Bug in normal search
The pipe character | is interpreted as branch.

Fix issue: character '|' now escaped for furter regexp search.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:55:22 +03:00
Slava Zanko
948ff80b7e Merge branch '1462_fix_manpages'
* 1462_fix_manpages:
  Fixed doc/man/mcview.1.in file
  Fixed doc/man/mcedit.1.in file
  Fixed doc/man/mc.1.in file
  Fixed doc/man/sr/mc.1.in file
  Fixed doc/man/ru/mc.1.in file
  Fixed doc/man/pl/mc.1.in file
  Fixed doc/man/it/mc.1.in file
  Fixed doc/man/hu/mc.1.in file
  Ticket #1462: Fix 'hyphen' used as minus sign and fix errors from man
2009-08-21 16:52:23 +03:00
Denis Briand
d7f17e1416 Fixed doc/man/mcview.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:03 +03:00
Denis Briand
e2206c3a70 Fixed doc/man/mcedit.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:03 +03:00
Denis Briand
ab39fc0ba6 Fixed doc/man/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:03 +03:00
Denis Briand
d3a7adbada Fixed doc/man/sr/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:02 +03:00
Denis Briand
b153b00c86 Fixed doc/man/ru/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:02 +03:00
Denis Briand
a3609ff758 Fixed doc/man/pl/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:02 +03:00
Denis Briand
e1584d026e Fixed doc/man/it/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:02 +03:00
Denis Briand
f4f10bcb2c Fixed doc/man/hu/mc.1.in file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:01 +03:00
Denis Briand
bb1cd93ca4 Ticket #1462: Fix 'hyphen' used as minus sign and fix errors from man
Fixed doc/man/es/mc.1.in file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-21 16:52:01 +03:00
Ilia Maslakov
96b33bae87 Merge branch '61_rectangular_select'
* 61_rectangular_select:
  add description of editor_cursor_beyond_eol into  mcedit.1.in
  fix: incorrect move/delete block if 'Cursor beyond end of line' swiched on
  fix: mouse selection if line state swiched on.
  Ticket #61 (Misbehaving rectangular select in editor)
2009-08-21 13:43:41 +00:00
Ilia Maslakov
2893fef51a add description of editor_cursor_beyond_eol into mcedit.1.in
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-21 13:42:30 +00:00
Ilia Maslakov
68a6495c96 fix: incorrect move/delete block if 'Cursor beyond end of line' swiched on
fix: Enter behavior if 'Cursor beyond end of line' swiched on

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-21 13:42:30 +00:00
Ilia Maslakov
cdd28feca8 fix: mouse selection if line state swiched on.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-21 13:42:29 +00:00
Ilia Maslakov
46eccd1102 Ticket #61 (Misbehaving rectangular select in editor)
fix: incorrect draw rectangular selection if start highlight from first line.
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-21 13:42:29 +00:00
Patrick Winnertz
001da1be2c Updated german translation and retranslated three strings as they were
too long for the widget.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-20 10:15:38 +02:00
Patrick Winnertz
93a95a1040 Merge branch '1540_tab_expansion_of_tilde'
* 1540_tab_expansion_of_tilde:
  Ticket #1545: Don't escape tilde on cmdline, this is not necessary.
2009-08-20 10:12:59 +02:00
Patrick Winnertz
83ad350b69 Ticket #1545: Don't escape tilde on cmdline, this is not necessary.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-19 22:10:33 +02:00
Ilia Maslakov
497af7820e Ticket #1546 (build broken for --with-screen=ncurses)
fix: inconnect value name in tty_print_anychar

    thanx jue for fix

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-19 19:46:28 +00:00
Patrick Winnertz
79e45c9770 Add TAGS for mcedit into .gitignore
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-19 20:51:06 +02:00
Sergei Trofimovich
985f076e5f Merge commit 'origin/82_sanitize_ro_file_edition'
* commit 'origin/82_sanitize_ro_file_edition':
  Ticket #82: savannah: "save as" retains mode (take 2) provided by dborka
2009-08-19 20:54:15 +03:00
Patrick Winnertz
c080a3e2a5 Add a xterm-256color entry to mc.lib
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-19 19:38:44 +02:00
Andrew Borodin
c0d802eb90 Merge branch '1547_convert_user_menu_to_utf8'
* 1547_convert_user_menu_to_utf8:
  Ticket #1547: convert SR user menu to UTF-8.
2009-08-19 15:58:03 +04:00
Andrew Borodin
9f1bb1e7ca Ticket #1547: convert SR user menu to UTF-8.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 15:00:41 +04:00
Slava Zanko
02bb6efe51 Merge branch '277_konsole_256color'
* 277_konsole_256color:
  Ticket #277: mc hangs if mouse support enabled on konsole-256color terminal
2009-08-19 13:19:31 +03:00
Slava Zanko
678e10a3ed Ticket #277: mc hangs if mouse support enabled on konsole-256color terminal
Added recognize for 'konsole' terminal into init_xterm_support() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-19 12:30:53 +03:00
Andrew Borodin
1c561adb9e Merge branch '1544_segfault_launch_info_panel'
* 1544_segfault_launch_info_panel:
  Fixed segfault during init saved Info or Tree panel.
  Ticket #1544: segfault om launch MC with saved Info or Tree panel
2009-08-19 12:50:21 +04:00
Andrew Borodin
1c7d3ca24a Fixed segfault during init saved Info or Tree panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 12:49:26 +04:00
Andrew Borodin
b98a0d4d1a Ticket #1544: segfault om launch MC with saved Info or Tree panel
First step: minor refactoring and code clean up.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 12:49:26 +04:00
Andrew Borodin
39c875a888 Merge branch '1531_reverse_selection_old_mode'
* 1531_reverse_selection_old_mode:
  Ticket #1531: old method of reverse selection of files.
2009-08-19 11:25:53 +04:00
Andrew Borodin
96e032b473 Ticket #1531: old method of reverse selection of files.
Now Gray-* shortcut inverts selection of directories as well as files.
This is very confusing feature especially when user is going to delete
files.

Added new variable 'reverse_files_only' allows use the old behavior
of reverse selection.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 11:25:25 +04:00
Andrew Borodin
bcf734f82a Merge branch '74_resize_disabled_mouse'
* 74_resize_disabled_mouse:
  Ticket #74: TUI is not resized if mouse is desabled.
2009-08-19 11:20:35 +04:00
Andrew Borodin
7c1e24525d Ticket #74: TUI is not resized if mouse is desabled.
If you run without mouse support (mc -d), mc doesn't detect resizes.

You need to press a key for mc to resize itself to new window after
window is maximized or resized (press up/down arrow, Ctrl-O, almost
anything will work).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 11:20:15 +04:00
Sergei Trofimovich
c769f7fcd3 Ticket #82: savannah: "save as" retains mode (take 2) provided by dborka
Suppose you have two files, foo and bar. Both files have 444 permissions.
Now edit foo and "Save". It can't save and instead prompt you to "Save As".
Enter bar. It will chmod bar to 644. If we don't touch touch existing file
permissions for "Save", I don't see why we should for "Save As".

Patch adds S_IWUSR only if different_filename and file does not exist yet.
For consistency, it's S_IWUSR not S_IWRITE.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-18 22:28:59 +03:00
Ilia Maslakov
c7001ef7cf Ticket #1484 (Editor bookmarks made visible)
fix: TWS and abnormal chars not highlighted

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-18 11:30:12 +00:00