Commit Graph

9562 Commits

Author SHA1 Message Date
Slava Zanko
52f6bed7d0 Moved dir $(srcdir)/vfs into $(srcdir)/lib/vfs/mc-vfs
Also, initial support of library directory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko
f90725ad0d Changes in sources matched with movement of $(srcdir)/edit into $(srcdir)/src/editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:19 +02:00
Slava Zanko
871991dda0 Ticket #1866: Move edit/ and vfs/ directories into src/
Moved dir $(srcdir)/edit into $(srcdir)/src/editor

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:19 +02:00
Slava Zanko
c79e5939e6 Merge branch '1973_segfault_panel_format'
* 1973_segfault_panel_format:
  Ticket #1973: Segfault in 'Listing mode' dialog
2010-01-26 10:25:22 +02:00
Slava Zanko
9fdfbf64cb Ticket #1973: Segfault in 'Listing mode' dialog
Test case:
 * run mc
 * Select F9 => 'Left/Right' => 'Listing mode...'
 * [x] user Mini status
 * enter below: 'half type name | size+ | perm'
 * Press [< OK >] button

Fix issue: alloc new block of memory with initialization (filled by zero)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:25:00 +02:00
Sergei Trofimovich
e9991314cf vfs/netutil.c: fix 'retval' memory leak in vfs_split_url when unbalanced '[' occurs
Thanks to cppckeck:
[./vfs/netutil.c:154]: (error) Memory leak: retval

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-01-22 20:34:15 +02:00
Ilia Maslakov
c03ade3252 Merge branch '1559_search_results_highlighting_fix'
* 1559_search_results_highlighting_fix:
  Ticket #1559 (Search results highlighting in mcedit is too subtle)
2010-01-21 16:16:24 +03:00
Ilia Maslakov
1da2c4113f Ticket #1559 (Search results highlighting in mcedit is too subtle)
changed default color pair for 'editbold' for more sensible.

    original issue:
    "It's a bit tricky to *search results of a search* in mcedit when default blue background is set.
    Default colour for search results highlighting should be probably changed to something more sensible;
    to my mind orange or red would be OK."

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-21 16:15:49 +03:00
Ilia Maslakov
734eff6025 Merge branch '1946_cursor_beyond_EOL_fix'
* 1946_cursor_beyond_EOL_fix:
  Ticket #1946 (Cursor beyond EOL has unusual default)
2010-01-21 16:09:25 +03:00
Andrew Borodin
9de980e2a4 Merge branch '1955_edit_symlink'
* 1955_edit_symlink:
  Ticket #1955: Incorrect input line length in 'Edit symlink' dialog window
2010-01-21 14:35:03 +00:00
Andrew Borodin
fef45001b0 Ticket #1955: Incorrect input line length in 'Edit symlink' dialog window
If symbolic link has a long name, the input line in 'Edit symlink'
dialog window is short. This bug is reproduces in non-C locales (KOI8-R,
UTF-8, etc).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-21 14:34:46 +00:00
Ilia Maslakov
a04c1cf665 Ticket #1946 (Cursor beyond EOL has unusual default)
now 'Cursor beyond EOL' switched off by default.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-21 16:06:49 +03:00
Ilia Maslakov
6be399dc28 Merge branch '1945_editor_mark_all'
* 1945_editor_mark_all:
  Modified hotkeys in editor menu to resolve conflicts.
  little menu refactoring
  Ticket #1945 (new editor action - select all/mark all)
2010-01-20 13:12:20 +03:00
Andrew Borodin
77eb72383a Modified hotkeys in editor menu to resolve conflicts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-20 13:08:38 +03:00
Ilia Maslakov
6c7a91939a little menu refactoring
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-20 13:08:37 +03:00
Ilia Maslakov
3d184b4be6 Ticket #1945 (new editor action - select all/mark all)
add new editor action - 'Mark all', allow select all text in the current file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-20 13:08:37 +03:00
Ilia Maslakov
4c6b5fc569 Merge branch '1585_slow_viewer'
* 1585_slow_viewer:
  added new parameter mcview_eof into ini-file
  added procedure mcview_update_filesize,
  Optimization of viewer screen content update.
  Fixed left/right movement in hex mode
  Fixed viewer button bar.
  New 'Goto' dialog implementation in viewer.
  Little refactoring of load_file_position, save_file_position (added new param 'offset')
  Fixed drawing of viewer status bar.
  this commit make the viewer faster.
  First step of viewer coordinates cache reimplementation.
  Ticket #1585: mc viwer is slow.
2010-01-19 19:21:04 +00:00
Ilia Maslakov
1eeffc2803 added new parameter mcview_eof into ini-file
if mcview_eof defined show mcview_eof as EOF

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:30 +00:00
Ilia Maslakov
8e68c5614a added procedure mcview_update_filesize,
now mcview reread the file size before goto bottom the file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:30 +00:00
Andrew Borodin
4197af0048 Optimization of viewer screen content update.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-19 19:15:29 +00:00
Nikita Ofitserov
efb28521f5 Fixed left/right movement in hex mode
Signed-off-by: Nikita Ofitserov <himikof@gmail.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:29 +00:00
Andrew Borodin
a617e68090 Fixed viewer button bar.
Set F5 button label ("Goto") the same for plain and hex modes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-19 19:15:29 +00:00
Andrew Borodin
e3589ee4d8 New 'Goto' dialog implementation in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

Removed mcview_moveto_addr_cmd, mcview_moveto_line_cmd,
mcview_moveto_cmd.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:29 +00:00
Ilia Maslakov
b1de9bbd80 Little refactoring of load_file_position, save_file_position (added new param 'offset')
Now viewer save/load only 'offset' and 'line' always = -1.
Changed editor edit_load_position, edit_save_position,
now if 'line' = -1 then used 'offset'

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:28 +00:00
Ilia Maslakov
f31bbc49a6 Fixed drawing of viewer status bar.
added drowing selected codepage in statusbar

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-19 19:15:04 +00:00
Ilia Maslakov
90913731c0 this commit make the viewer faster.
remowed all no needed calls of mcview_offset_to_coord and mcview_coord_to_offset
    added mcview_eol, mcview_bol for navigate in current file

    thanx Nikita Ofitserov <himikof@gmail.com> for the patches and testing

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 14:21:04 +03:00
Andrew Borodin
335c1779eb First step of viewer coordinates cache reimplementation.
Reimplemented some of coordinates cache internals.
    Array is used instead of GList. If needed, array is reallocated.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-18 17:55:16 +03:00
Andrew Borodin
d2668b188a Ticket #1585: mc viwer is slow.
Initial commit: minor refactoring:
    rename coord_cache_entry to coord_cache_entry_t.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-18 17:55:16 +03:00
Emmanuel Trillaud
adf88d6bd5 Update French translation for 4.7.0-stable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-18 15:38:39 +02:00
Andrew Borodin
e20f28d8e9 Merge branch '1965_find_dialog_corruption'
* 1965_find_dialog_corruption:
  Ticket #1965: fixed handling of Tree in 'Find File' dialogue.
2010-01-18 16:30:17 +00:00
Andrew Borodin
c6702258de Ticket #1965: fixed handling of Tree in 'Find File' dialogue.
The Start at prompt is filled with garbage every time
the Tree option is entered in the Find dialogue.

To reproduce:
1. M-? to open Find dialogue
2. not that the Start at prompt is empty
3. press M-T or navigate to Tree button and press enter
4. you see tree view, press ESC
5. the Start at prompt is filed by garbage

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-18 16:29:52 +00:00
Denis Briand
d2f5965bd9 Documentation update: fixes for spelling errors from Debian. 2010-01-17 15:20:54 +01:00
Slava Zanko
dc5cee2452 Merge branch '1657_broken_transparency'
* 1657_broken_transparency:
  Ticket #1657: Transparency support is broken in 4.7.0-pre3
2010-01-16 15:13:02 +02:00
Slava Zanko
57a6a26be7 Ticket #1657: Transparency support is broken in 4.7.0-pre3
The latest version breaks transparency support.
If I'd change _default_ to lightgray;default in the [core] section, the panels are unreadable.
It looks like the _default_ variable interpreted as lightgray;lightgray.

Fix Issue: do not apply COLOR_WHITE as mask if color value equal to -1

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-16 15:12:35 +02:00
Enrico Weigelt, metux IT service
d9384a6518 Merge branch '1514_right_margin_fix'
* 1514_right_margin_fix:
  Ticket #1514 (incorrect draw right margin)
2010-01-15 01:29:56 +01:00
Ilia Maslakov
5f45920a32 Ticket #1514 (incorrect draw right margin)
fixed incorrect drawind right margin if option show_right_margin = 0

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-15 01:29:21 +01:00
Enrico Weigelt, metux IT service
ecb96b9fe4 Merge branch '1932_obsolete_termios_h_check'
* 1932_obsolete_termios_h_check:
  More HAVE_TERMIOS_H removals
  Ticket #1932: Removed obsolete checks for standard header termios.h
2010-01-15 00:59:03 +01:00
Enrico Weigelt, metux IT service
86c345cd4b More HAVE_TERMIOS_H removals 2010-01-15 00:58:50 +01:00
Enrico Weigelt, metux IT service
4a4fc37f53 Ticket #1932: Removed obsolete checks for standard header termios.h 2010-01-15 00:58:50 +01:00
Enrico Weigelt, metux IT service
99a10e86e5 Merge remote branch 'mco/1930_fix_missing_fs_h'
* mco/1930_fix_missing_fs_h:
  Ticket #1930: src/strutil8bit.c: fixed missing include of fs.h
2010-01-15 00:57:22 +01:00
Enrico Weigelt, metux IT service
e0ba3c583f Ticket #1930: src/strutil8bit.c: fixed missing include of fs.h 2010-01-15 00:56:38 +01:00
Enrico Weigelt, metux IT service
ead0a8ca5d Merge remote branch 'mco/1960_fix_missing_printf_format'
* mco/1960_fix_missing_printf_format:
  Ticket #1960: src/mcconfig/common.c: fixed missing printf format in mc_config_new_or_override_file()
2010-01-14 20:12:28 +01:00
Enrico Weigelt, metux IT service
7cb7acb14c Ticket #1960: src/mcconfig/common.c: fixed missing printf format in mc_config_new_or_override_file() 2010-01-14 20:12:06 +01:00
Andrew Borodin
581763fdd8 Merge branch '1944_empty_line_in_wrapped_line'
* 1944_empty_line_in_wrapped_line:
  Ticket #1944: incorrect draw of wrapped lines.
2010-01-14 16:29:07 +00:00
Andrew Borodin
23cd4b9cb3 Ticket #1944: incorrect draw of wrapped lines.
If viewer is in wrap mode, there is an expta empty line
in wrapped line. This bug was introduced in
8c84095ae1 commit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-14 16:28:51 +00:00
Andrew Borodin
49c86446ac Merge branch '1931_no_vfs_fixups'
* 1931_no_vfs_fixups:
  Moved vfs_split_url() from vfs/utilvfs.c to vfs/netutil.c
  vfs: cleaned up tcp_init()
  VFS: renamed vfs/tcputil.c to vfs/netutil.c.
  VFS: renamed vfs/tcputil.h to vfs/netutil.h.
  vfs/ftpfs.c: fixed a nullptr leak in ftpfs_find_machine()
  VFS: removed obsolete src/vfsdummy.h
  VFS: moved functions from src/vfsdummy.h to vfs/vfs.h
  Ticket #1931: VFS: added missing includes of vfs/vfs.h
2010-01-13 13:20:48 +00:00
Enrico Weigelt, metux IT service
656d6ef1f2 Moved vfs_split_url() from vfs/utilvfs.c to vfs/netutil.c 2010-01-13 13:18:07 +00:00
Enrico Weigelt, metux IT service
d422e9783d vfs: cleaned up tcp_init()
tcp_init() is now called by every vfs which needs it and prevents
itself from duplicate initialization.

this is the first step to get rid of --enable-netcode and so clean
up things a bit.
2010-01-13 13:18:02 +00:00
Andrew Borodin
57c438b486 VFS: renamed vfs/tcputil.c to vfs/netutil.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-13 13:17:47 +00:00
Andrew Borodin
430919d4a1 VFS: renamed vfs/tcputil.h to vfs/netutil.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-13 13:16:57 +00:00