Commit Graph

11245 Commits

Author SHA1 Message Date
Vitaliy Filippov
6253decba5 Ticket #2543: Hex viewer mode does not restore cursor position.
If you are in hex viewer mode and viewer remembers file positions, the
viewer restores the start position, but does not restore the position
of cursor.
So the restored position is basically useless in hex mode, because when
you move cursor, you go back to the beginning of file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-22 21:29:40 +04:00
Slava Zanko
07c14a4a62 Merge branch '2611_broken_panels_drawing'
* 2611_broken_panels_drawing:
  Ticket #2611: FISH: broken panels drawing after entering password
2011-09-21 10:24:25 +03:00
Slava Zanko
b361722545 Ticket #2611: FISH: broken panels drawing after entering password
Steps to reproduce:
 * run ssh daemon on your host;
 * run mc;
 * type cd sh://127.0.0.1;
 * type your password;
 * just one panel was shown, after pressing ctrl+r second panel will shown as well.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-19 12:53:54 +03:00
Slava Zanko
db9a02fe0e Updated NEWS for 4.8.0-pre2 release
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-12 12:23:48 +03:00
Ilia Maslakov
39b9a2150f Merge branch '2605_fish_get_fix'
* 2605_fish_get_fix:
  Ticket #2605 (FISH: mc hangs while copy lot of small files)
2011-09-12 12:32:14 +04:00
Ilia Maslakov
d6cbefb146 Ticket #2605 (FISH: mc hangs while copy lot of small files)
fixed fish-script 'get'.

    Steps to reproduce:
    create lot of small files
    try to copy these files throught FISH VFS
    mc hangs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-09-12 11:57:30 +04:00
Slava Zanko
3f816dbb5d Fixed placement for changesetfs and patchsetfs files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-11 12:36:46 +03:00
Andrew Borodin
7b1b0751d6 Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-11 10:40:32 +04:00
Slava Zanko
4df0e1cfbf Updated NEWS for 4.8.0-pre2 release.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 16:30:07 +03:00
Slava Zanko
091a718c4f Update translations from Transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 16:26:48 +03:00
Slava Zanko
c19da50fe9 Merge branch '2602_cleanup'
* 2602_cleanup:
  (try_complete): fixed warinig:
  (edit_collect_completions): fixed warinig:
  (etags_set_definition_hash): fixed memory leak
  Use ESC_STR macro instead of hardcoded "\033".
  Value accuracy of mouse_enabled global variable.
  Fixed VFS prefix in hints.
  Nice location of red (warning and error) dialogs.
  (dlg_find_by_id): use the GLib way to find widget.
  (move_right): fixed type of return value.
  (menubar_arrange): fixed typos.
  Avoided warning message about non-existent maint/version.sh file
  Minor fixes in NEWS.
  Preventing po/*.po files in git-diff output
  Cleanups and format small fixes in EN and RU man pages.
  Editor: remove unused #define's.
  Optimization of walking in dialog widgets.
  Set logfile for smbfs using mc_setctl().
  (mc_setup_by_args): fixed old VFS prefix.
  (show_datadirs_extended): fixed paths in help message.
  Ticket #2602: cleanup branch
2011-09-09 16:04:42 +03:00
Andrew Borodin
f68b35b475 (try_complete): fixed warinig:
input_complete.c:874:26:  warning: use of logical && with constant
operand; switch to  bitwise & or remove constant
[-Wconstant-logical-operand]
    if (q && q[1] == '(' && INPUT_COMPLETE_COMMANDS)
                         ^  ~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
23ec140834 (edit_collect_completions): fixed warinig:
editcmd.c:1104:42: warning: use of logical && with constant  operand;
switch to bitwise & or remove constant  [-Wconstant-logical-operand]
            if (*num == MAX_WORD_COMPLETIONS && MAX_WORD_COMPLETIONS)
                                             ^  ~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
0274ef4653 (etags_set_definition_hash): fixed memory leak
... and code indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
6c5a679b85 Use ESC_STR macro instead of hardcoded "\033".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
b982f70d4b Value accuracy of mouse_enabled global variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
8445c885a5 Fixed VFS prefix in hints.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
cd1e5fb76d Nice location of red (warning and error) dialogs.
Now warning/error dialog overlaps the previous status dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
bb8babce1e (dlg_find_by_id): use the GLib way to find widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
829f79c7e7 (move_right): fixed type of return value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
db2fa05e27 (menubar_arrange): fixed typos.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Slava Zanko
034633a3c9 Avoided warning message about non-existent maint/version.sh file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 12:01:56 +03:00
Andrew Borodin
6ac6a55301 Minor fixes in NEWS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Slava Zanko
8b217ee306 Preventing po/*.po files in git-diff output
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 12:01:55 +03:00
Andrew Borodin
a5fe9d1d6c Cleanups and format small fixes in EN and RU man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
4124e9e6de Editor: remove unused #define's.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
ba86de945c Optimization of walking in dialog widgets.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
05385e1586 Set logfile for smbfs using mc_setctl().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
0c51a48a71 (mc_setup_by_args): fixed old VFS prefix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
0997a01be9 (show_datadirs_extended): fixed paths in help message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Slava Zanko
3bf0ede28f Ticket #2602: cleanup branch
Added %{_libexecdir}/mc/fish directory to spec file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-09 12:01:23 +03:00
Slava Zanko
d75cb6efb6 Merge branch '2594_ftp_leading_spaces'
* 2594_ftp_leading_spaces:
  VFS ftpfs: fixed broken filenames in unaligned 'ls' command output
  Ticket #2594: ftp failures - leading white space in file name
2011-09-08 20:11:17 +03:00
Slava Zanko
12dfe1bd55 VFS ftpfs: fixed broken filenames in unaligned 'ls' command output
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 20:10:48 +03:00
Slava Zanko
20c4694ee5 Ticket #2594: ftp failures - leading white space in file name
Code cleanup: move 'ls' output parser (and functions-satellites) to
new file parse_ls_vga.c

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 20:10:48 +03:00
Slava Zanko
a0214562a2 Merge branch '2595_vfs_encode'
* 2595_vfs_encode:
  Fixed filenames recoding while call external utilites by mc.ext rules
  Fixed regexp error if current codepage isn't equal to UTF-8 in UTF-8 environment
  Ticket #2595: Broken panels recode in current master
2011-09-08 13:50:33 +03:00
Slava Zanko
222442f50a Fixed filenames recoding while call external utilites by mc.ext rules
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 13:50:02 +03:00
Slava Zanko
372cf39a4f Fixed regexp error if current codepage isn't equal to UTF-8 in UTF-8 environment
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 13:50:02 +03:00
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