Commit Graph

11258 Commits

Author SHA1 Message Date
Slava Zanko
20a79d52ab Ticket #2595: Broken panels recode in current master
Fixed path recoding

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 13:50:02 +03:00
Andrew Borodin
a02c24e6d9 Merge branch '2601_tty_init'
* 2601_tty_init:
  Removed mc_global.args structure.
  Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
  Removed global variable slow_tty
  Removed global variable ugly_line_drawing
  Moved xterm_flag global variable to mc_global.tty.xterm_flag
  Move SIGWINCH handler initialization to tty_init()
  Fix of mouse and ca capabilities check.
  Refactoring of TTY layer shutdown.
  Ticket #2601: incorrect TTY layer initialization.
2011-09-08 14:12:26 +04:00
Slava Zanko
70ff1dc3aa Removed mc_global.args structure.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Ilia Maslakov
67c35a20a6 Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
Required for some terminals (screen/tmux) to force needed mouse type
(BUTTON_EVENT by default).

Normal tracking mode sends an escape sequence on both button press and release.
Mouse highlight tracking notifies a program of a button press, receives a range of
lines from the program, highlights the region covered by the mouse within that
range until button release, and then sends the program the release coordinates.
It is enabled by specifying parameter 1001 to DECSET.

Button-event tracking is essentially the same as normal tracking, but xterm also
reports button-motion events. Motion events are reported only if the mouse pointer
has moved to a different character cell. It is enabled by specifying parameter 1002 to DECSET.
On button press or release, xterm sends the same codes used by normal tracking mode.

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

changed mc.1.in, added description of command line options -g, --oldmouse.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
bfbe9b94ae Removed global variable slow_tty
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
9d9935d290 Removed global variable ugly_line_drawing
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
8d44ed297b Moved xterm_flag global variable to mc_global.tty.xterm_flag
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Andrew Borodin
387bad2c7e Move SIGWINCH handler initialization to tty_init()
... and rename tty_low_level_change_screen_size() to
tty_change_screen_size().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:11:51 +04:00
Andrew Borodin
ad0a5015d3 Fix of mouse and ca capabilities check.
Based on patch from Andrey V. Malyshev <amal krasn ru>
http://mail.gnome.org/archives/mc-devel/2005-November/msg00052.html

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:10:58 +04:00
Andrew Borodin
09123c9fc9 Refactoring of TTY layer shutdown.
Unification of tty_shutdown() function as for S-Lang as for NCurses.
Added do_exit_ca_mode() call to the NCurses-based tty_shutdown().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:10:58 +04:00
Andrew Borodin
68468a25ac Ticket #2601: incorrect TTY layer initialization.
The xterm_flag variable was initialized in setup_mc() but used
first time in init_key() and in tty_init() (in do_enter_ca_mode())
before setup_mc() call.

Now xterm initialized in early step of mc start up process and
xterm support and mouse are initialized in tty_init().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:10:51 +04:00
Slava Zanko
eba55ddb56 Merge branch '2582_sshfs_crash_while_copying_symlink'
* 2582_sshfs_crash_while_copying_symlink:
  FISH: Fixed creating relative symlinks
  Ticket #2582: Crash in 4.8.0-pre1 when copying symlink over ssh
2011-09-07 16:16:48 +03:00
Slava Zanko
00db991372 FISH: Fixed creating relative symlinks
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-07 14:44:59 +03:00
Slava Zanko
0894f8c827 Ticket #2582: Crash in 4.8.0-pre1 when copying symlink over ssh
mc 4.8.0-pre1 crashes when copying symlink over ssh.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-07 14:44:59 +03:00
Andrew Borodin
8353224997 Merge branch '2580_file_size_column'
* 2580_file_size_column:
  (size_trunc): added ability to show size in [G|g]bytes.
  (size_trunc_len): process full range of uintmax_t type.
  Ticket #2580: file size column is bogus for widths above 9.
2011-08-30 21:36:27 +04:00
Andrew Borodin
fc3bb20f09 (size_trunc): added ability to show size in [G|g]bytes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-30 21:36:13 +04:00
Andrew Borodin
12c893c73e (size_trunc_len): process full range of uintmax_t type.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-30 21:36:13 +04:00
Andrew Borodin
7700f8a262 Ticket #2580: file size column is bogus for widths above 9.
Initial step: detect uintmax_t type and sizeof(uintmax_t) in
configure.ac.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-30 21:36:13 +04:00
Slava Zanko
4aebb59549 Merge branch '2576_duplicate_symbol'
* 2576_duplicate_symbol:
  Ticket #2576: Duplicate symbols (Linking) problem under Mac OS X
2011-08-30 18:19:16 +03:00
Slava Zanko
d74ce809e5 Ticket #2576: Duplicate symbols (Linking) problem under Mac OS X
Fixed linker error 'duplicate symbol _record_macro_buf'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-30 18:19:00 +03:00
Andrew Borodin
f65f5da0f2 Merge branch '2201_tar_filename_length'
* 2201_tar_filename_length:
  Ticket #2201: file name length limit in tar archive
2011-08-29 16:17:11 +04:00
Andrew Borodin
90d019a499 Ticket #2201: file name length limit in tar archive
The problem: extracting deep files from an archive containing long directory/file
names, filenames are cut off at 100 characters (length of the whole path
inside the archive).

In general, the TarVFS is scheduled for total reimplementation. But this
fix is useful for stable releases.

Thanks AVFS (avf.sf.net) for the code of this fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 18:41:27 +04:00
Andrew Borodin
bf3dafba01 Merge branch '2593_hintbar'
* 2593_hintbar:
  (panel_operate): minor optimization.
  Ticket #2593: Hint line jumps to the top of the screen and overwrites main menu.
2011-08-28 17:32:34 +04:00
Andrew Borodin
ad545f951a (panel_operate): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 17:31:19 +04:00
Andrew Borodin
0747bc6fe5 Ticket #2593: Hint line jumps to the top of the screen and overwrites main menu.
Don't modify the hintbar position before create and after destroy
of file operation progress dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 17:31:19 +04:00
Andrew Borodin
eb13abc437 Merge branch '2586_mcedit_extended_keybindings'
* 2586_mcedit_extended_keybindings:
  Changed type of WEdit::extmod from integer to gboolean.
  Extended shortcuts like 'ctrl-x x' are unavailable in editor.
  Ticket #2586: broken extended keybindings in editor.
2011-08-26 10:31:54 +04:00
Andrew Borodin
d55c30eb7d Changed type of WEdit::extmod from integer to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrew Borodin
d86acaa51d Extended shortcuts like 'ctrl-x x' are unavailable in editor.
Extended shortcuts like 'ctrl-x ctrl-x' or 'ctrl-x alt-x' are available
in editor, but 'ctrl-x x' are not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrew Borodin
d8277f2ed9 Ticket #2586: broken extended keybindings in editor.
ctrl-x shortcut is used in default keymap twice:
  * as shotrcut for WordRight action (see 0908c8baea);
  * as prefix for extended keybindings.

To fix the second issue, shortcut for editor.ExtendedKeyMap is
unassigned now because extended shortcuts are unused in editor in
default keymap.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrew Borodin
c4af1f250c Merge branch '2591_editor_bottom_line_click'
* 2591_editor_bottom_line_click:
  Allow create WEdit window with any sizes and in any location.
  Draw status line at the top of screen not at the top of editor widget.
  Ticket #2591: mouse clicks ignored on the bottom line of editor.
2011-08-24 09:52:16 +04:00
Andrew Borodin
29d675c567 Allow create WEdit window with any sizes and in any location.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-24 09:51:54 +04:00
Andrew Borodin
340dc69013 Draw status line at the top of screen not at the top of editor widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-24 09:51:54 +04:00
Andrew Borodin
5ae3697e58 Ticket #2591: mouse clicks ignored on the bottom line of editor.
Initial step: fixups of WEdit resizing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-24 09:51:54 +04:00
Andrew Borodin
c819eb1fa3 Merge branch '2590_chdir_other_panel_on_symlink'
* 2590_chdir_other_panel_on_symlink:
  Ticket #2590: M-o works unexpectedly on symlink shortcuts
2011-08-12 14:02:59 +04:00
Andrew Borodin
10537ca05d Ticket #2590: M-o works unexpectedly on symlink shortcuts
(chdir_other_panel): symbolic link to directory is handled now
as directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-12 14:02:40 +04:00
Andrew Borodin
c81c3e4244 Merge branch '2589_ac_lang_source'
* 2589_ac_lang_source:
  Ticket #2589: fix autoconf warning
2011-08-11 13:06:38 +04:00
Jindrich Makovicka
bd5348591f Ticket #2589: fix autoconf warning
Recent autoconf displays warnings about missing AC_LANG_SOURCE.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-11 13:05:57 +04:00
Andrew Borodin
606883393e Ticket #2587: cannot compile 4.8.0-pre1 and 4.7.5.3 on Solaris
...using Sun C++ 5.11.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-11 11:10:46 +04:00
Andrew Borodin
3c122216fe Merge branch '2175_sort_panelization'
* 2175_sort_panelization:
  Ticket #2175: panelize doesn't honour current sorting.
2011-08-03 15:51:34 +04:00
Andrew Borodin
f0b1f55c19 Ticket #2175: panelize doesn't honour current sorting.
After Find file -> Panelize files are shown with order of being found
and sorting mode of current panel is not applied.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-03 15:51:04 +04:00
Andrey Rahmatullin
607c6a21dc Ticket #2583: misc/mc.ext.in: added 3gp video.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-28 11:29:33 +04:00
Andrew Borodin
caccdbe877 Merge branch '2579_hex_search'
* 2579_hex_search:
  (mc_search__hex_translate_to_regex): optimization and cleanup.
  Ticket #2579: incorrect length usage in hexadecimal search.
2011-07-19 21:17:00 +04:00
Andrew Borodin
3ec8721f47 (mc_search__hex_translate_to_regex): optimization and cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-19 12:45:10 +04:00
Andrew Borodin
efb4206883 Ticket #2579: incorrect length usage in hexadecimal search.
(mc_search__hex_translate_to_regex): don't use length of original string
after leading whitespace trim.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-19 12:34:11 +04:00
Slava Zanko
1dc4c30eb9 Merge branch '265_viewer_search_nroffed_twice'
* 265_viewer_search_nroffed_twice:
  Fixed finds twice in backward direction in nroff'ed text
  fixed search result highlighting while search in backward direction
  Fixed broken search results highlighting
  Fixed broken search in nroffed text with one-byte charset encoding
  Fixed search for first symbol in string.
  Ticket #265: Search finds bold/underlined strings twice
2011-07-19 09:52:20 +03:00
Slava Zanko
b3e9a75e72 Fixed finds twice in backward direction in nroff'ed text
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
7af542b76e fixed search result highlighting while search in backward direction
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
1940e8f5dd Fixed broken search results highlighting
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
064352e14d Fixed broken search in nroffed text with one-byte charset encoding
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00
Slava Zanko
ba2f67e0ac Fixed search for first symbol in string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00