Commit Graph

8737 Commits

Author SHA1 Message Date
Ilia Maslakov
c148f8e055 fix: draw text in utf mode
fix: right movement in HEX
2009-08-24 16:26:41 +00:00
Slava Zanko
b06ab0fe72 Split src/view.c into small files for better support of code
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:41 +00:00
Slava Zanko
ec0c0e3050 Just refactoring. All functions in src/view.c now have mcview_ prefix 2009-08-24 16:20:53 +00:00
Ilia Maslakov
8f143bdddf fix: hex mode show 2009-08-24 16:20:52 +00:00
Ilia Maslakov
eb9a251dcc add: some utf8 procedures:
* get_ptr_file (WView *view, offset_type byte_index)
    * get_ptr_string (WView *view, offset_type byte_index)
    * get_ptr_growing_buffer (WView *view, offset_type byte_index)
    * get_utf (WView *view, offset_type byte_index, int *char_width)

    add: property 'utf' in the struct Wview

    Signed-off-by: Slava Zanko <slavazanko@gmail.com>
    Added temlate for splitting src/view.c into lot of
    smalest files (for better development and supporting).
2009-08-24 16:20:52 +00:00
Andrew Borodin
a83739a910 view.c: made compilable.
Search and recording don't work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 16:20:52 +00:00
Andrew Borodin
ffac3ab7a9 Viewer: version from mc-4.6.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 16:20:51 +00:00
Slava Zanko
d620bf4ab6 Merge branch '1477_incorrect_detection_compressed_patchfs'
* 1477_incorrect_detection_compressed_patchfs:
  Ticket #1477: incorrect detection of compressed patchfs
2009-08-24 17:53:29 +03:00
Daniel Borca
ad42905ecf Ticket #1477: incorrect detection of compressed patchfs
UseCase:
 * rename any patch file into patch_file.lzma_tar.patch.gz for example
 * try to enter into renamed file (press Enter key on a file in panel)
 * You'll see error message 'sh: lzma: command not found'

Fix issue:
 * Add -b key into call of 'file' utility (to avoid filename in output)
 * better parse 'file -b' output

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 17:41:36 +03:00
Slava Zanko
d5167d0e6f Merge branch '1543_file_content_case_insensitive_regex_search'
* 1543_file_content_case_insensitive_regex_search:
  Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly
2009-08-24 15:01:46 +03:00
Slava Zanko
7dd9fdd505 Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly
Fixed Case-isentetive search with [ranges].

Reason of bug:

content_pattern was initialized via str_create_search_needle() function (from src/strutils.c)
This function convert string to lowercase if case_sentitive is off. Therefore string
'some_string[^a-zA-Z]' was transform into 'some_string[^a-za-z]'

Fix issue:

replace call of str_create_search_needle() function to g_strdup()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 15:00:53 +03:00
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