Commit Graph

8587 Commits

Author SHA1 Message Date
Andrew Borodin
fb51cb8241 Use TTY function names instead of #define's. 2009-08-12 21:23:12 +04:00
Andrew Borodin
3720285612 Reorganization of is_abort_char() function.
src/tty/key.h: cleanup. Changed returned type of is_abort_char()
function from int to gboolean.

src/tty/key.c: moved is_abort_char() function here...

src/tty/win.h: ...from here.

src/dialog.c (dialog_handle_key): is_abort_char() function is used.
Changed order of dialog key handling. Formatting.
2009-08-12 21:23:12 +04:00
Andrew Borodin
c12ddff69b Reorganization of TTY color functions. 2009-08-12 21:23:12 +04:00
Andrew Borodin
bcc6a40486 Reorganization of TTY initalization and line drawing.
Created some TTY functions instead of MC core global variables.
Moved init_layer() function from MC core to TTY layer.
Renamed slang_init() to init_slang().
Added required #include's in TTY layer.
Moved S-Lang color and attribute definitions from src/tty/tty-slang.h
to colors-slang.h.
2009-08-12 21:23:12 +04:00
Andrew Borodin
7a75f8723d Replaced addstr() call to tty_print_string() one. 2009-08-12 21:23:12 +04:00
Andrew Borodin
069aab9ebc Renamed mc_refresh() to tty_refresh(). 2009-08-12 21:22:17 +04:00
Andrew Borodin
7ed7c83e8d Replaced addstr(str_term_form(...)) to tty_print_string(...). 2009-08-12 21:22:17 +04:00
Andrew Borodin
62cdac4d1f The tty_draw_box() function has been created and used. 2009-08-12 21:19:20 +04:00
Andrew Borodin
ebbf6fbcdc Replaced functions.
attrset() -> tty_setcolor()
move() -> tty_gotoyx()
getyx() -> tty_getyx()
2009-08-12 21:19:20 +04:00
Andrew Borodin
ea0cb38b9e Initial step to split NCurses- and SLang-based TTY layers. 2009-08-12 21:19:20 +04:00
Andrew Borodin
389e5bf613 Moved rxvt.c, win.[ch] and x11con.[ch] from src to src/tty directory.
Fixed includes.
Fixed library order in src/Makefile.am due to --as-needed linking option.
2009-08-12 21:19:20 +04:00
Andrew Borodin
f3730bdc41 Initial step to move TTY layer of MC to separate library. 2009-08-12 21:19:20 +04:00
Slava Zanko
3eeeb35e53 Merge branch '1496_search_backwards_broken'
* 1496_search_backwards_broken:
  Changed types in structure 'mc_search_struct' from 'gsize' to 'otff_t'
  Ticket #1496 (Search backwards is broken)
2009-08-12 15:04:55 +03:00
Slava Zanko
0dc26a14d4 Changed types in structure 'mc_search_struct' from 'gsize' to 'otff_t'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 15:04:37 +03:00
Daniel Borca
2a586710b7 Ticket #1496 (Search backwards is broken)
fix: file edit/editcmd.c backward search is broken
2009-08-12 15:04:37 +03:00
Slava Zanko
646b11a7ce Merge branch '1520_Uninitialized_event_x'
* 1520_Uninitialized_event_x:
  Ticket #1520: Uninitialized event.x in find.c#check_find_events()
2009-08-12 15:02:01 +03:00
dborca
02132ecaea Ticket #1520: Uninitialized event.x in find.c#check_find_events()
Fixed uninitialised member of structure.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 15:01:51 +03:00
Slava Zanko
1104a6db38 Merge branch '1521_ctrl_z_does_not_work'
* 1521_ctrl_z_does_not_work:
  Ticket #1521: ctrl-z (aka suspend) does not work
2009-08-12 14:58:50 +03:00
dborca
688d80cdb1 Ticket #1521: ctrl-z (aka suspend) does not work
Fix issue:
execute.c is missing #include <signal.h> and therefore #ifdef SIGTSTP fails miserably.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 14:37:22 +03:00
Sergei Trofimovich
5f1ad860b7 Ticket #1527: heap corruption detected on large filenames
Fix bug, introduced in 27fbf91c28
commit. Really allocate 'dirent + NAME_MAX + 1', instead of
sizeof(void*) + NAME_MAX + 1.

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-08-12 12:37:32 +03:00
Andrew Borodin
3b37c6cd4e Merge branch '330_show_menu_screen_resize'
* 330_show_menu_screen_resize:
  Ticket #330: show dropped down menu is screen has been resized.
2009-08-10 15:31:08 +04:00
Andrew Borodin
8a1c364ff0 Ticket #330: show dropped down menu is screen has been resized.
Now works for both values of "menuBar visible" option.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-10 15:30:29 +04:00
Patrick Winnertz
c313396a45 Ticket #1501
* place every operation into a if clause, so that every failure of the
     operations is reported.
    * Place chown/chmod into if conditions to check if the commands where
      successfull or not on fish.
    * Added one more argument to the #CHOWN line

    Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-10 07:10:42 +00:00
Sergei Trofimovich
65771004c4 Ticket #82 (savannah: "save as" retains mode) patch by imdagger
Consider following scenario:
$ touch /tmp/foo_file
$ chmod 0444 /tmp/foo_file # readonly for owner
$ mcedit /tmp/foo_file
> 1. edit
> 2. try to save, fail. choose another name: /tmp/foo_file2
> 3. edit
> 4. try to save, fail again!

This patch adds owner write permissions for files, created in
step 2.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-09 19:24:42 +03:00
Stan. S. Krupoderov
96c0dc08d8 Ticket #1485: iso9660 extfs does not handle certain isos
extfs/iso9660.in: add suport UCS l1, and fix ageinst new isoinfo

    Original author: dborca

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-09 16:27:27 +04:00
Daniel Borca
556089fc9f Ticket #1478 (kill word)
add: "kill word" (M-d) shortcut in editor;
2009-08-08 12:48:24 +00:00
Andrew Borodin
7a98a302be Merge branch '1457_findfile_first_entry_fix'
* 1457_findfile_first_entry_fix:
  Find file: fixed missing runtime i18n of "First Hit" label.
  Find file: fixed search for first hit.
  Find file: refactoring.
2009-08-08 15:51:51 +04:00
Andrew Borodin
54b6991a9c Find file: fixed missing runtime i18n of "First Hit" label.
Thanks to David Martin <dmartina at excite dot com>

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-08 15:51:27 +04:00
Andrew Borodin
ef699b94be Find file: fixed search for first hit.
Stop search file content if first hit found.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-08 15:51:27 +04:00
Andrew Borodin
fbd042889a Find file: refactoring.
Type accuracy.
Used gboolean instead of int for some dual-value variables.
Used static buffer for search result instead of dynamically
allocaled and freed memory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-08 15:51:27 +04:00
Igor Zhuravlov
5cddf032f0 Ticket #1492: j.syntax
j.syntax: add syntax file
    Syntax: enable j syntax

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-08 15:37:54 +04:00
Daniel Borca
670d11fc73 Ticket #1499 (mcview: Search backwards is broken)
fix: src/view.c backward searck is broken

    Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-08 08:42:50 +00:00
Sergei Trofimovich
b56f55fc83 (Ticket #1476) Revert * lib/mc.ext.in: Tar is missing a - as argument fix
This reverts commit f021c090f9.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-07 21:45:26 +03:00
Slava Zanko
5518e7ad58 Merge branch '414_shell_patterns_in_copy_dialog'
* 414_shell_patterns_in_copy_dialog:
  Ticket #414 (shell patterns in copy dialog)
2009-08-07 16:07:42 +03:00
Denys Vlasenko
4586834cb9 Ticket #414 (shell patterns in copy dialog)
Handle asterisks into replace template string.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-07 14:47:26 +03:00
Andrew Borodin
11cc7a7009 Ticket 1461: missing line feeds in Info panel.
Thanks to Denis Briand.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-07 11:38:28 +04:00
Denis Briand
e03b8504f5 Ticket #1469: strace.syntax
strace.syntax: add file to support strace syntax
    Syntax, Makefile.am: enable strace.syntax

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 11:18:21 +04:00
Denis Briand
d57c955cea Ticket #1468: html.syntax
html.syntax: update html syntax

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 11:15:51 +04:00
Denis Briand
d38ce0dd27 Ticket #1471: mail.syntax
syntax, mail.syntax: add new headers support, change some colors

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 09:58:38 +04:00
Yury V. Zaytsev
324c7cecb6 Ticket #1438: Update RPM SPEC file to fix rpmlint warnings and compilation on EL*
mc.spec.in:
	- Fixed EL4 (and supposedly EL3) builds
	- Fixed some of rpmlint warnings

    Author: Yury V. Zaytsev

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-06 21:04:53 +04:00
Andrew Borodin
08a98212a9 Merge branch '1458_vhdl_syntax'
* 1458_vhdl_syntax:
  Ticket 1458: updated VHDL syntax.
2009-08-06 19:58:22 +04:00
Andrew Borodin
26235c959a Ticket 1458: updated VHDL syntax.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-06 19:57:08 +04:00
Denis Briand
49570e9e70 Ticket #1470 (named.syntax)
Syntax, Makefile.am: enable named syntax
    named.syntax: add syntax file
    Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>

    Added additional keywords into named.syntax file
    Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-06 15:53:54 +00:00
Denis Briand
6a348e9d31 Ticket #1472: fix non FHS path into manpages examples
**/mc.1.in: fix path into manpages examples

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-06 18:09:47 +04:00
Mikhail S. Pobolovets
1692e737c4 Ticket #1475: warningis fix
view.c:3237: format not a string literal and no
    format arguments

    utilunix.c:171, utilunix.c:173:
    assignment discards qualifiers from pointer target type

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-08-06 16:20:28 +03:00
Stan. S. Krupoderov
87f3cd1cda Ticket #1452: handle .tbz2 extension
mc.ext.in: support for tbz2, patch from ijabbott
2009-08-06 15:43:45 +04:00
Ilia Maslakov
00200124dd Ticket #1411 (issue insertion in overwite mode)
fix: issue insertion in overwite mode
2009-08-06 10:18:08 +00:00
Slava Zanko
53a587ed29 Merge branch '1435_i18n_search_options'
* 1435_i18n_search_options:
  Ticket #1435 (Editor search options i18n)
2009-08-06 10:33:26 +03:00
Slava Zanko
a525546de2 Ticket #1435 (Editor search options i18n)
* Fix runtime translation of search types array;
 * reworked function mc_search_get_types_strings_array.

Thanks to dmartina for bugreport.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-06 10:33:04 +03:00
Ilia Maslakov
99c8f6a680 Ticket #1460 (shared search history)
* The sample of the containing text by file search;
    * The sample of search in file mcview;
    * The sample of search in mcedit (search operation);
    * The substituting text in mceditor (replacement operation).

    Author: Alexey Korop

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

    Editor: search will continue from last search string if SHIFT+F7 hotkey pressed
    at first time (without pressed F7 key).

    Signed-off-by: Slava Zanko <slavazanko@gmail.com>

    add const MC_HISTORY_SHARED_SEARCH into history.h

    Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-05 14:30:08 +00:00