Commit Graph

4695 Commits

Author SHA1 Message Date
Slava Zanko
6505f7d6fa Try fix of compile warnings about assigned but unused variables
...as returned values of functions declared with attribute
warn_unused_result [-Wunused-result].

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:04:05 +04:00
Andrew Borodin
23c95d36ac Code cleanup: removed unused variables amd removed unnedeed code.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
71ebcc5896 (exec_extension): ret rid of double filename conversion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
fec326f641 Tweak of select codepage code in case of --disable-charset
...in mceditor, mcviewer and mcdiffviewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Ilia Maslakov
973aae2b5e Fix of 'External panelize' dialog: update of 'Command' field content after mouse click.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-07-17 17:04:05 +04:00
Andrew Borodin
40d6e96471 Fix of f13 key handling.
ViewFile doesn't have the default key, and f13 is key for ViewRaw
which is handled in panel not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Pavel Vasilyev
2c4562d759 Ticket #2538: mcviewer: unused result of str_term_width1().
And reduce size of buffer used to show file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Slava Zanko
16a624db07 src/filemanager/mountlist.c: apply mc code indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
e3b36c8b3d Ticket #2845: code cleanup before 4.8.4 release.
Sync with gnulib 06b335ade65c8fe60fee8b9e18b670bb54ed924a:

Write "Mac OS X" instead of "MacOS X".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Ilia Maslakov
1d4ca9608a Ticket #2788 (aspell support)
Add aspell support for internal editor.
The aspell library is dinamycally loaded.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-07-12 16:00:45 +04:00
Andrew Borodin
562ef41b15 Ticket #2842: change hotkey for Normal search mode.
In Search dialog in mcedit M-n hotkey was used for normal search mode.
Therefore, M-n as HistoryPrev in the input line was in accessible.

Change hotkey for normal seach mode to M-r. Use this hotkey for normal diff
mode in mcdiffviewer to unify i18n resources.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-08 16:27:48 +04:00
Andrew Borodin
3786051314 Add SFTP to the list of supported VFSes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-05 10:34:30 +03:00
Slava Zanko
8f15940f50 SFTP connections are shown now in 'Active VFS connections' list.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-05 10:34:30 +03:00
Andrew Borodin
4841bc608a Fixed reget support in SFTP.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-05 10:34:30 +03:00
Andrew Borodin
3cf76f69bf Ticket #2825: obtain FS name from stat info: sync with coreutils.
src/filemanager/filegui.c does not compile on Solaris due to missing macros.
AVE_STRUCT_STATVFS_F_BASETYPE and HAVE_STRUCT_STATVFS_F_FSTYPENAME macros
are not set or even defined in config.h. configure scrips does not even
check for those members.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-02 20:50:19 +04:00
Slava Zanko
614d7f6a08 Fixed the filename escaping issues.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:14:29 +03:00
Andrew Borodin
af2fe31ff3 Ticket #2829: loss of data on copy to full partition.
While copy/move file, the ENOSPC value of errno wasn't handled.

If destination file isn't comlete because of full partition, source file
is kept and destination one is removed unconditionally.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-26 16:19:22 +04:00
Andrew Borodin
e7fb3526f3 Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup
...in case of build with --disable-charset option.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 16:58:57 +04:00
Andrew Borodin
315c499c09 Ticket #2827: tweak and cleanup of code in case of --disable-charset option usage.
First step: tweak vfs-related code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 16:56:11 +04:00
Slava Zanko
da03697e84 Ticket #1535: SFTP support
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-21 14:29:32 +03:00
Andrew Borodin
bf1924e7ff Set fullscreen layout as previous editor look'n'feel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:32:52 +04:00
Andrew Borodin
84aa04fa6e Open several files in mc editor from command line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
109f07465e Show top opened file in screen list.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
ba79784948 Add icons to close window and toggle window state using mouse.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
4fa4e7568d Skin support for window frames.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
2bb6cb2a32 Add toggle fullscreen mode of editor windows.
Initially, window is created in fullscreen mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
6038c893e4 Handle CK_ShowNumbers action in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
85ad1fe4ce Handle CK_ShowTabTws and CK_ShowMargin actions in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
385fdc7f2b Handle CK_SyntaxOnOff action in dialog level instead of widget one. 2012-06-20 22:26:10 +04:00
Andrew Borodin
ee2a204631 Modify CK_Refresh command handling. 2012-06-20 22:26:06 +04:00
Andrew Borodin
5018bdc3fc Handle CK_Option action in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
92923aff29 Assign button bar to the current editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
3b72e4275b Switch windows using keyboard.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
f1839a9a80 Open each file in its own window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
8fd3338060 Add edit_add_window() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
1c33972ee5 Add CK_Close action to close current open file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
b2152ae22a Handle CK_Shell, CK_LearnKeys, CK_OptionsSaveMode and CK_SaveSetup actions in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
98e0de0c3a Handle CK_Help, CK_Quit and CK_About actions in dialog level instead of widget one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
b50f4f07e5 Allow move and resize edit window using keyboard.
Add "Window" menu entry in editor main menu to handle editor windows.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Andrew Borodin
d9bb50b013 Editor: optimization of menu handling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Andrew Borodin
a2fdf8997f Allow move and resize edit window using mouse.
Left click on the top line and drag to move.
Left click on bottom-right corner and drag to resize.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Ilia Maslakov
2a62a7c792 Add edit_info_status() function. 2012-06-20 22:25:12 +04:00
Andrew Borodin
81f4c6a5ae Draw a frame around edit area.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:24:54 +04:00
Andrew Borodin
4cec8cbf94 Minor optimization and type accuracy of some editor functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:24:49 +04:00
Ilia Maslakov
80b0cde5c1 Fix of mult-byte characters and tabulation printing.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 16:46:39 +04:00
Andrew Borodin
71c29390d9 Ticket #2261: allow edit many files in one editor window.
Initial step: renamed src/editor/edit-widget.h to src/editor/editwidget.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 16:05:12 +04:00
Molnár Károly
06285250aa Ticket #2751: Support *.lib artifacts generated by gputils utility
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-12 14:35:48 +03:00
Andrew Borodin
f23f55bc9e Handle directory history of panel.
Added pointer to the current history item and use to walk in history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Andrew Borodin
c813d1baad Handle history of input line.
Added pointer to the current history item and use to walk in history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Andrew Borodin
f899f62a86 Ticket #2313: CK_History removes CK_HistoryNext entries
Steps to reproduce:

1. traverse through some directories,
2. press alt-y multiple times,
3. press alt-u multiple times,
4. press alt-y again a few times,
5. press alt-shift-h (notice no dirs to forward to), press esc,
6. press alt-u - nothing happens.

Initial step: (directory_history_add): make static and use vfs_path_t as argument.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Ilia Maslakov
18f555a4cf Ticket #2495 (show info about macros)
Display extended info about compiled-in paths for internal/external macros.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-06-11 07:58:10 +04:00
Andrew Borodin
9bec27cb04 Ticket #2817: fixes of mouse handling in file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-08 11:25:29 +04:00
Andrew Borodin
77ed2cf70c Change obtaining of working dir.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
c1f2a8ac49 Clean up stuff that is not used anymore.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
c83c3f7052 Ticket #2814: handle CK_FileNext/CK_FilePrev inside mcviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
9b5e5a5106 Reimplemented mouse event handling in the file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-01 13:44:40 +04:00
Andrew Borodin
83e3945c24 Ticket #2817: add mouse handler to the dialog.
Currently, dialog itself doesn't handle mouse events. It just
resends mouse event to each its widget. If we can several overlapped
widgets (especially, menu bar), there is some problem to decide which
widget must get event at first.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-30 13:23:12 +04:00
Andrew Borodin
28a8b10f12 Ticket #2813: number of panelized files was limited to 127.
(handle_path): restore contidion that was lost in
eeaad790ab.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-28 16:26:28 +04:00
Slava Zanko
d14f481785 src/filemanager/ext.c: Added ability to export global variables to external programs called from mc.ext file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
3b3a1da8ad src/filemanager/ext.c: Code optimization.
avoid few actions while %cd called from ext-file.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
2af4c0d723 Ticket #2118: split exec_extention() function to few functions.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
21d1f61b40 Ticket #2800: Garbage directory listing in ftpfs
Just open any non-anonymous FTP connection.
2012-05-18 12:31:29 +03:00
Phil Krylov
7c425e8500 Ticket #2808: build failure on FreeBSD 6.
sys/param.h needs to be included before sys/mount.h on FreeBSD 6,
otherwise compiling fails with undefined identifier NGROUPS.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-13 14:49:30 +04:00
Andrew Borodin
9e2d9d47bc Ticket #2805: fix of misenterpretation of command line arguments as relative paths.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-09 10:32:09 +04:00
Andrew Borodin
bbf534e7d7 Don't mix mc_search_cb_ret_t and int as result of search callback.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-08 18:57:55 +04:00
Andrew Borodin
48bd62f9bc Ticket #2783: when right panel is active, panel paths are swapped at each mc start.
How to reproduce.
1. Goto ~. Run mc. Enable autosave panels setup before exit. Save options.
2.  Open ~ dir in the left panel, / in the right one. Make right panel active.
3. Close mc.
4. With mc-wrapper, following is performed:
4.1. Run mc. Now ~ in the right panel, / in the left one.
4.2. Close mc.
4.3. Run mc. Now ~ in the left panel again, / in the right one.
4.4. ...and so on.
5. Without mc-wrapper, following is performed:
5.1. Run mc. Now ~ in both panels.

Expected behavior with current_is_left=false

1. if mc start as mc dir dir2, dir1 is opened in the left panel, dir2 in
the right one.
2. if mc starts as mc (without dir1 and dir2), active (right)  panel
contains working directory, other (left) one contains other_dir from
panel.ini.
3. if mc start as mc dir1, dir1 is opened in the left panel, right panel
contains working directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-04 18:19:44 +04:00
Andrew Borodin
8607bcc103 Ticket #2785: error message when entering into compressed tar and cpio archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-25 16:42:39 +04:00
Andrew Borodin
4e8faef03e Ticket #2783: directories is opened in the wrong panel.
mc dir1 dir2

The bug: order of parameters assignment depends on current_is_left
option in panels.ini file: if current_is_left=0, then dir1 is opened
in the left panel, dir2 in the right one. If current_is_left=1,
then dir1 is opened in the right panel, dir2 in the left one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-24 20:49:57 +04:00
Andrew Borodin
ac880c71a7 Ticket #2784: segfault at chown.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-23 09:37:32 +04:00
Andrew Borodin
25315360bd (mc_setup_by_args): fixed memory leaks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
bd4a696ab6 (reread_cmd): use vfs_path_cmp() to compare dirs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
1c05ebf8b9 (do_load_dir): use vfs_path_t as a path handle.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
bf65b9b691 README.fish: fixed location of user scripts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
8895615aca Use new-style VFS prefixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
22c1d05f6b (nice_cd): use new-style VFS prefixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
3b86ee7808 Fixed mouse handling in WPanel widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
a878a2dd37 (vfs_expare): changed argument type from int to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
a9ff27db05 (check_for_default): minor optimization and change return value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
8ac2c68d3f Fix of viewer status bar draw.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Slava Zanko
0a44a9ff5f Ticket #2779: Active VFS directories list contain incorrect current path
1) login to any ftp or fish resource
2) select ftp/fish entry and change current path
3) go back to old path
4) press Ctrl+X A (open "Active VFS directories" dialog)

Expected result: should be correct path to current VFS path
Actual result: path is incorrect.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:23:13 +03:00
Slava Zanko
117aa67155 Ticket #2765: Show directory sizes on any VFS is broken
Command "Show directory sizes" shows zero when executed on ftp, utar, fish etc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-18 10:30:56 +03:00
Andrew Borodin
638cac9be3 Ticket #2776: file selection reset after cd to ".." in remote VFS.
After cd from directory to ".." in remote VFS, directory selection is
reset (".." is selected instead of the previous directory).

Bug was introduced in c457eaf9b1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-15 14:38:04 +04:00
Andrew Borodin
c457eaf9b1 Ticket #2776: file selection reset after exit from the archive in the root.
After exit from archive located in the root of FS, file selection is
reset (/bin is selected instead of the archive).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-13 14:53:57 +04:00
Slava Zanko
764cdf2497 Ticket #2775: segfault after open incorrect archive
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-12 22:52:47 +03:00
Slava Zanko
4184555b82 Ticket #2760: The password for session ftp remains in input history
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-12 22:31:20 +03:00
Slava Zanko
0e5b78b98b Code optimization: memory allocation and free moved outside of loop.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:30:05 +03:00
Slava Zanko
b4571ad1c5 Ticket #1868: mcedit hang up on replace with regexp.
steps to reproduce:

 * create/open dummy file
 * replace (with regexp enabled)
 * on search string, put: ^ or $
 * on replacement string, put *any string*
 * on confirm replace, select All

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:30:05 +03:00
Ilia Maslakov
55684c3286 Ticket #2766 (Cursor position reset after update)
Cursor position reset after update when panel is panelized, but doesn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-04 15:59:42 +04:00
Andrew Borodin
e4fc99d404 Tweak description of MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:52:08 +04:00
Slava Zanko
bd5c568f8f Ticket #2663: Segmentation fault while background copying
Action to reproduce bug:
Start copy/move file/files (around 100mb+) in background

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-04 13:59:19 +03:00
Andrew Borodin
b4efe67b12 (diff_view): make static.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:23 +04:00
Andrew Borodin
118d7c1d1d Make mcdiff verbose if one or both parameters are incorrect.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:22 +04:00
Andrew Borodin
809f668717 Ticket #2769: crash on compare files if one panel is not in the listing mode.
Added check of panel types before run file comparision.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:22 +04:00
Egmont Koblinger
caf5a9e1b5 Ticket #2763 (Last word of help links not clickable)
The last word of hyperlinks in the interactive help don't act on mouse clicks.
    This also implies that one-word links can't be clicked at all.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-28 13:26:45 +04:00
Slava Zanko
2a5885fb7f Ticket #2761: save file on top of existing directory changes dir's permissions
Steps to reproduce:

mkdir foo
chmod 0700 foo
mcedit bar
ls -ld foo
drw-r--r-- 1 slyfox users 0 Mar 22 22:10 foo

We've lost dir's permissions.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-27 11:05:13 +03:00
Ilia Maslakov
f0f39cb2a7 code indentation
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-26 10:12:24 +04:00
Slava Zanko
a58aee00cb Ticket #2278: Problem in the Copy operation
Previously, copying a file does not change access permissions of the destination
file if the check box "Preserve attributes" in the Copy window is not set.
For some time it is not so: if you uncheck the "Preserve attributes" then access
permissions of the destination file are set in accordance with the value of
umask, which can lead to information disclosure(i.e. security problem).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-26 09:50:02 +04:00
Slava Zanko
d52b1dced1 Ticket #2759: Unable to edit gzipped files
Steps to reprosuce:

 *) dmesg| gzip -c9 > out.gz
 *) press F4 on out.gz file

Expected result: editor should be opened
Actual result: segmentation fault.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:34:08 +03:00
Andrew Borodin
62f382b70e Ticket #2384: allow rebind Fx keys in the file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-25 10:39:35 +04:00
Andrew Borodin
87174bad44 Optimization of second panel directory setup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-24 17:20:26 +03:00
Andrew Borodin
188a20f333 Ticket #2762: mc ignores second directory argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-24 17:20:26 +03:00
Slava Zanko
408ba2a2de hotlist: fixed broken newly added entries.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Slava Zanko
296eec83eb Ticket #2753: fixed entering to old-style path format.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Andrew Borodin
529a7ba24c Ticket #2754: mceedit can't run w/o file as parameter.
Also fixed segfault while run `mc -v ""`.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-21 14:12:17 +03:00
Ilia Maslakov
4a940004ed Added new entry to the external panelize - "Modified git files".
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-19 17:00:29 +04:00
Andrew Borodin
7b28a01feb Fixed handling actions in chmod dialog
...in according with 7e6ff9caf9

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:07:43 +03:00
Andrew Borodin
4f5c2e1649 (extfs_get_path_mangle): renamed to extfs_get_path_int
and chnaged type of returned value to pointer to constant.

Related changes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
c2406adfce (extfs_get_path_mangle): minor optimization.
Avoid string allocation if it is really unneeded.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
8b8c9a4f34 (panel_reload): fixup of panel current directory obtain.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
62bbe53205 (edit_load_file_from_filename): fixed file unlocking.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Slava Zanko
409e8ab5fd Typo fix in message
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 11:06:01 +03:00
Andrew Borodin
4bd81f5866 (expand_format): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
53b146c83a Added default shortcuts for dynamically resize panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
308237aa11 Fixed preprocessor conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
d38385eb37 find.c: drop support of legacy config option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
67a4c6d521 Added macros for Layout and Misc sections of main config file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
dea3aa9023 Reorder fields in mc_global struct and change type for some of them.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
0960ef2541 Removed useless return.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:58 +03:00
Andrew Borodin
01e51f5496 Editor: avoid extra screen redraw.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
4ca6fe66aa editdraw.c: removed unused defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
c7bde637f9 Tweak background operations support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
aadf01f390 Include sys/param.h conditionally.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
f7f37f674e Check assert.h header and use it conditionally.
assert(3) should be replaced with g_assert().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
b3d1eafb5e Minor optimization of memory allocation for string copy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
e2b67a33ba Ticket #2740: code cleanup before 4.8.2 release.
Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:56 +03:00
Andrew Borodin
13a660d2e0 Allow setup mc home directory using MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:43:55 +03:00
Andrew Borodin
cce7ccf48a Tweak arguments parsing
...to allow to show info about mc options regardless of the fact that
configuration directories cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
dcba554a6d Handle error of mc main loop.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
9919577962 Ticket #2738: handle errors at mc sturtup stage.
Don't run MC if configuration directory cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Slava Zanko
a354a9b228 Ticket #2695: fixed segfault on newly created files in editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-15 12:47:46 +03:00
Andrew Borodin
cfc13ba3a0 Ticket #2747: fixups of hotlist loading.
Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:22:22 +03:00
Andrew Borodin
da00fa0b04 Fixup of getting stat info before file operation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 19:37:39 +03:00
Andrew Borodin
50c63ca886 Fixed location of hotlist query dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
62fc80f5f7 Allow draw a part of line if some coordinares are out of screen boundaries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
140d4ea117 Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
7e6ff9caf9 Allow override standard dialog actions in some dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
6ad4b2466b Allow add and remove widgets in runtime.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
33d25a0c8f Put global mouse coordinates to widgets.
Now each widget gets absolute coordinates of mouse pointer and decides
itself how to handle them.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Slava Zanko
4047403077 Fixed creation of lock files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:32 +03:00
Slava Zanko
8d71371961 Changed function remove_encoding_from_path() for return vfs_path_t type
Also, fixed bug with non-changeable encoding inside archives.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:32 +03:00
Slava Zanko
9d005bce6f panels: Show archive name when entering to archive
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:32 +03:00
Slava Zanko
49e35a62fb Fixed destination file name when file dialog with single operation is appear
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
05d220a9c6 vfs_path: Fixed broken relative paths processing.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Andrew Borodin
2f744e86a2 Reimplemented list of operated files using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-06 11:52:31 +03:00
Slava Zanko
a8da7179d0 Return values of following functions are constants now:
* vfs_path_get_last_path_str()
  * vfs_path_get_last_path_vfs()
  * vfs_path_get_by_index()
  * vfs_class_find_by_handle()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-06 11:52:31 +03:00
Slava Zanko
d2be823ac3 Changed src/filemanager/file.c to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
c9af137914 Changed lot of functions in src/ directory
...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
ccfea7a142 Share same code between update_xterm_title_path() and midnight_get_title() functions
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
2b5c28b316 Changes to handle vfs_path_t object:
* removed strip_password () function;
 * Added new vfs_path flag: VPF_HIDE_CHARSET;
 * added vfs_path_add_element() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
c68ce1efe4 Use vfs_path_t in execute.c and subshell.c.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
4dde82c5be Changed do_cd() and do_panel() functions
...to handle vfs_path_t objects.

Changed panelized_panel_t.root type to vfs_path_t.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
8562a215be Code refactoring: removed concat_dir_and_file() function.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
862d53090d Code refactoring
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
87291354e3 Changed internal viewer to use vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
db58cd9ca7 Changed internal editor to use vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
12a9390524 Changed lock_file() and unlock_file() functions
...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
3529890d0c Changed treestore functions to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
98bad221f8 Changed do_reload_dir() function
...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:51 +03:00
Slava Zanko
e7dc7ebf2d Push/pop dirstack: changed type of saved items to vfs_path_t type.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:51 +03:00
Slava Zanko
902e5cb978 Changed format of string 'current directory path' at header of panel.
* path elements now are separated and shown one-by-one
   (eg. ftp://some.in.net instead of ~/some/path/ftp://some.in.net)
 * encoding info is shown separated at top of header line

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:50 +03:00
Slava Zanko
0aa10fd6cb Changed type of WPanel::cwd (char *) and WPanel::lwd (char *)
...to WPanel::cwd_vpath (vfs_path_tr *) and WPanel::lwd_vpath (vfs_path_t *).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:50 +03:00
Ilia Maslakov
bd970f29da subshell.c: changed printf message into stserr to the vfs_print_message
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
75c2b483ff Changed interface of functions mc_getlocalcopy() and mc_ungetlocalcopy()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
389ac85992 Changed input parameters of mc_mkstemp() and mc_tempdir() functions
to handle vfs_path_t type.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
4945d0f9a6 Changed interface of function mc_open() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
0a7caff306 Changed interface of function mc_symlink()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
b27f686f87 Changed interface of functions mc_link() and mc_rename()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
3f6f89bc49 Changed interface of following functions to handle vfs_path_t object as parameter:
* mc_chmod()
 * mc_chown()
 * mc_utime()
 * mc_readlink()
 * mc_unlink()
 * mc_mkdir()
 * mc_rmdir()
 * mc_mknod()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
031e994cba changed interface of function mc_setctl() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
034252a71a Changed interface of function mc_opendir()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:24 +03:00
Slava Zanko
eeaad790ab Changed interface of mc_stat() and mc_lstat() functions
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:24 +03:00
Slava Zanko
8ec4f94dc6 changed interface of function mc_chdir() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Slava Zanko
e2c326997f Added usage of VFS_S_USETMP flag
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Andrew Borodin
ebacf41678 Ticket #2736: dont't reload panel forced before file operations
...to avoid actions on wrong files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-28 20:44:32 +03:00
Andrew Borodin
5531b25dd7 (examine_cd): split in two functions to be unit test friendly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
0a5065cb84 Support of disable of shell variables substitution in the command line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
66231b1ac9 Ticket #2451: allow do not variable substite in the command line.
Environment variable should not be substituted if escaping of dollar
sign is used: \$VAR.

Initial steps:
(do_cd): changed return type from int to gboolean.
(examine_cd): likewise and some cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Egmont Koblinger
94ffb8ba37 Ticket #2684 (selected file must be into the visible area).
After resize the window, the cursor line disappears, selected file was hide, but mustn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-23 17:00:31 +03:00
Ilia Maslakov
0a192e51c7 added scroll indication
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-21 22:20:27 +04:00
Ilia Maslakov
d94da7d5c3 Ticket #2731 (scroll long filenames in panel)
added bindings 'ScrollLeft', 'ScrollRight' for scroll long filenames in panel

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

    some code & typo fixes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-21 22:20:25 +04:00
Ilia Maslakov
693ae0ac7f Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)
reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-15 13:58:43 +04:00
Ilia Maslakov
5e688eec94 Ticket #2465 (dynamically resize panels)
added new panel's action to dynamically resize panels:
    SplitEqual - make equal size of panels
    SplitMore - enlarge left/up panel
    SplitLess - enlarge right/down panel

changed misc/mc.keymap.default, misc/mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-09 13:44:32 +04:00
Andrew Borodin
ebd0ce59a0 Ticket #2521: fixup of panel size after layout change.
Now each layout type has independent options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-08 12:36:02 +03:00
Andrew Borodin
349308542f Ticket #2714: command line is unaccessible form tree panel.
If current panel is tree one, cannot enter a command in the command
line.
tree_key() was sync'd with panel_key().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-01 12:42:07 +03:00
Andrew Borodin
7f1a2e76af Grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
b991d529ee Calculate and show copied bytes for all files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
09d77878c7 Update file operation statistics for every processing file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
dad538e7dc Simplify constructing of file operation progress dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
efb0197656 Ticket #2503: don't show total file operation info
...if the file_op_compute_totals option is off.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
8fae57a1f5 (edit_insert_file_cmd): sync with new edit_insert_file()
...and make minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-08 11:58:21 +04:00
Ilia Maslakov
88b3f840a7 Ticket #2710 (can't open an edit zero-length file from VFS in mcedit)
fixed problem with zero-length files from VFS in mcedit.

    steps to reproduce the problem:
    1. touch test.txt
    2. tar cf test.tar test.txt
    3. place cursor on test.tar and press Enter to enter to the archive.
    4. place cursor on test.txt and press F4 to open file in editor.
    Result: file not opened.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-01-08 11:58:20 +04:00
Andrew Borodin
1f1908a824 Refactoring of hotlist confirmation dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:28 +03:00
Andrew Borodin
a29abae2e3 Ticket #1576: delete an empty hotlist group w/o extra confirmation.
While deleting an empty group in hotlist, the extra confirmation
"Group not empty. Remove it?" should not raise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:10 +03:00
Andrew Borodin
0aa81e22ad Fixed hotkeys in 'Search' dialog in mcdiff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
301e41b3e5 Fixed hotkeys in 'Search' and 'Replace' dialogs in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
407b57a0b2 Fixed hotkeys in 'Search' dialog in mcviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
1923c3544c Ticket #2694: support '~' as home dir in 'Start at:' field in 'Find File' dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-29 11:46:07 +03:00
S. Melnikov
a3ddfd14ea Ticket #2105 (mcview backward search)
Until 4.7 '/' was forward and '?' backward search.
    In current releases both keys are bound to ViewSearch
    so one must manually choose Backwards option in the dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-28 17:30:07 +04:00
Ilia Maslakov
0b631ab1eb Ticket #86 (disable X11 from command line)
added option --no-x, -X for starting mc without X11 support.
    updated documentation: es, hu, it, en, pl, ru, sr.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-22 09:04:50 +04:00
Andrew Borodin
bd2ddb54cb Modified "Configure options" dialog for better look'n'feel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:30:35 +03:00
Slava Zanko
1dffc24f9b Fixed user defined home dir, if home dir contain tilda (~/)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:30:35 +03:00
Andrew Borodin
1b53918e0a Move type and function declarations.
(panel_view_mode_t): move from panel.h to layout.h.
(panel_update_cols): move from layout.[ch] to panel.[ch]
Fixed related includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
5e129f6b03 Fixed double declaration of midnight_dlg variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
5aaaa57883 More type accuracy
...in addition to a1e34b8dfa.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
56f8164381 Type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin
7e01565c93 Fixed panel type replacement.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Slava Zanko
1ba18c54b0 Ticket 2686: Code cleanup
Avoid compiler warnings

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:23:25 +03:00
Slava Zanko
ccb6de98c1 FISH: added external script 'utime'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 11:51:25 +03:00
Sergey
fac8c5d2f3 Ticket #2625: mc does not preserve file mtime when copying over ssh
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 11:51:25 +03:00
Andrew Borodin
86c8378d66 Fixup update of command line after window resize.
The bug only occurs with subshell enabled.

When resizing the window while in the viewer, the subshell resizes
itself and hence prints its prompt again. This is captured and processed
by mc.

src/filemanager/layout.c:setup_panels() is executed and recalculates
properties of the panel, but for some reason this time mc_prompt does
contain all the invisible characters, they are not stripped off, hence
size calculation goes wrong.

Thanks Egmont Koblinger for the detailed description of the problem and
the idea of fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-07 16:02:20 +03:00
Andrew Borodin
5e2d802f8d Ticket #2677: ret rid of double dialog in viewer if search not found.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 20:53:43 +03:00
Andrew Borodin
56a819ec5e Fixed comment about location of mc.keymap file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 16:24:10 +03:00
Slava Zanko
6c32fa3b84 Added function mc_config_get_full_path() for search user's config files by short names.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Sergey
b4fb7b0c74 Ticket #1730 (troubles in mcviewer with utf8)
Fixed troubles in mcviewer with drawing utf8 chars.
    It happens in the middle of an utf8 char (on every 4096 bytes),
    leading to a valid char treated as unprintable.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 16:24:10 +03:00
Andrew Savchenko
6d99accfe0 Ticket #2676 (save of some learned keys is broken)
fixed saving of 'F13'-'F20' learned keys.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 11:42:20 +04:00
Andrew Borodin
0fcd9fdfa3 Minor optimization in file list creation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-18 10:37:33 +03:00
Ilia Maslakov
7f6655e865 Show the relative filename path in the panel
...if current panel->cwd is equal to the panelization root.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 10:01:16 +03:00
Ilia Maslakov
068b5b4948 Changed type of the WPanel::is_panelized member from int to gboolean.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 09:54:42 +03:00
Andrew Borodin
44b827bb9f Fixes segfault after switch panel mode
...from non-listing one (info, tree, quick view) to panelization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:32:40 +03:00
Andrew Borodin
3dbc61124f Ticket #275: panelization fixes.
"File listing" menu command should switch panel from panelization to the
file listing mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:31:53 +03:00
Andrew Borodin
f929752310 Ticket #71: not all errors are skipped after "Ignore all" choose.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-11-16 16:29:49 +03:00
Andrew Borodin
83ee61254b Ticket #2669: fixed broken directory reloading.
Bug was introduced in 5c252726f1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-09 13:51:51 +03:00
Slava Zanko
ffbd9561f0 Ticket #2652: SMB is broken
After #2361, smb vfs module doesn't work at all.
The error message "Cannot chdir to ..." raises after hostname enter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-31 23:31:59 +03:00
Andrew Borodin
fb3b86f2cd Optimization of menu creation.
Avoid a lot of iteration through the list of menu entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-31 15:53:05 +03:00
Andrew Borodin
e7e3a119b4 src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:26:54 +04:00
Andrew Borodin
ac23f3277b Ticket #2338: use uintmax_t for file system infomation
... to avoid integer overflow in huge file systems.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:01:24 +04:00
Ilia Maslakov
5c252726f1 Ticket #275 (panelize enhancement)
added ".." at the top of file list (after external panelization)
    added ".." at the top of file list (after 'find' panelization)
    disable ctrl-r (refresh) for panelized content
    added menu entry Left\Panelize, to restore panelized panel

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

Minor changes in goto_parent_dir()
many code optimization

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

little fixup

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-27 15:54:57 +04:00
Slava Zanko
c67bb4c53f Fixed compiler error: request for member strict in something not a structure or union
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:09:44 +03:00
Slava Zanko
489c7bf32e fixed warning: enumeration value 'FUSE_MAGIC' not handled in switch
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:06:32 +03:00
Sergey
2cd6dbfb53 Ticket #2634: mc cannot navigate over spftp servers
Some FTP servers like ftp.symantec.com and download.nvidia.com
do not support parameters in LIST command. They don't fail on
LIST -la ... just ignore them. So mc shows only root directory.
Always.

Steps to reproduce:
cd /#ftp:ftp.symantec.com/public

Expected result:
Content of /public/ directory shown.

Actual result:
Content of root / directory shown instead.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:54:33 +03:00
Slava Zanko
87e65893e7 Fixed searching the start of word
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
eacda21c12 Code optimization: avoid lot of calls for alloc/free memory in cycle.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
d12179c0de Current word under cursor doesn't included in completion list, if same word already exists in text.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
ply
9b86146de2 Ticket #2614: Editor word completion should ignore the current word
Currently the completion considers the word the cursor is on as a possible
completion, but this is quite annoying if the cursor is inside the word.
Such completion effectively inserts the rest of the word one more time, so
CamelCase becomes CamelCaseCase. If this is the only match, it completes
automatically, which is even worse. The current word shouldn't be used
for completion.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:04 +03:00
igor
2e895e3c29 Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
If we copy the files to the partition mounted with sshfs,
the default checkbox "preserve Attributes" is unchecked.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:20:27 +03:00
Sergey
7f9c8f0969 fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:34:30 +04:00
Sergey
3e1b644f41 Ticket #2372 (Editor sometimes shows multibyte UTF-8 chars as two dots)
Sometimes when text contain multibyte UTF-8 chars, editor shows two dots instead of some letter.
When moving text cursor after that letter it will be displayed properly.
When moving cursor back (before letter) it will be displayed again as two dots.

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

added UTF8_CHAR_LEN

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:19:03 +04:00
Slava Zanko
41af257135 Added configuration option 'preallocate_space' for toggle space preallocating behaviour.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Slava Zanko
323fedecd7 Added implementation for files space preallocation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Ilia Maslakov
c6e21eff7d little optimization to make code more intuitive.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-19 14:03:49 +04:00
Andrew Borodin
664b3efcda Ticket #2623: vfs: use data after free.
(vfs_s_close): vfs-specific data of file handler
vfs_file_handler_t::data is freed in vfs_s_subclass::fh_close method and
then can be used in vfs_s_subclass::file_store_one. Bug is related to
ftp and fish VFSes.

Added new vfs_s_subclass::fh_free_data method to free vfs-specific data
of file handler vfs_file_handler_t::data. Use it in ftp and vfs VFSes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-19 12:45:28 +04:00
Slava Zanko
0138645541 Ticket 1551: Update GPL version from 2 to 3
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Andrew Borodin
3f674600c8 Fix build with --disable-charset option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
07612ac7b7 Editor: reduce scope of some functions.
The edit_insert_column_of_text() function is used only in
src/editor/editcmd.c file. Now it is static.

Removed unneeded forward declarations.

Moved static functions to static area in src/editor/editcmd.c

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
4b0032de28 Editor: reduce scope of some functions.
Following fuctions are used in in src/editor/edit.c file only:

edit_print_string
edit_move_block_to_right
edit_move_block_to_left

They was moved from src/editor/editcmd.c into src/editor/edit.c
and made static.

insert_spaces_tab() is used in src/editor/edit.c. Not it is static. Also
some optimization was performed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
8664830831 Editor: reduce scope of some functions.
Following fuctions are used in in src/editor/edit.c file only:

edit_get_byte_ptr
edit_get_buf_ptr
edit_get_prev_utf

Now they are static.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
9ac22ec544 (get_paragraph): fix of pointer difference.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6ce562381c (load_keymap_from_section): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6fdf2e6cef (load_keymap_from_section): remove unneeded keybind conversions.
Now the '^' sign can be directly used in keymap files as well
as his name 'caret'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
7330cd5672 Remove CK_Help action handler in diffviewer
...since it is fully identical with default handler.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Andrew Borodin
8f4b9e32f1 Remove extra screen update after show help.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Slava Zanko
a1e34b8dfa Code cleanup after runing splint on src/main.c file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 13:30:03 +03:00
Daniel Hahler
4271c184de Ticket #2598: u7z: Improve handling of missing p7zip binaries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-03 13:39:56 +04:00
Slava Zanko
3c25300cd3 Ticket #2621: VFS extfs: broken navigation in archives if current path is encoded
Steps to reproduce:

 * configure & compile mc with '--enable-charset' option;
 * run mc
 * go to dir with any of *.zip, *.rpm, *.deb, *.patch/diff files
 * Change path encoding to any other by pressing ALT+e (selected encoding should be dfferent to system encoding)
 * try to enter to archive

You'll se error message from extfs module.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-30 12:54:10 +03:00
Andrew Borodin
b471db4905 Fixed positions of text start and hex cursor
...after switch between plane and hex modes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-23 20:38:50 +04:00
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
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
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
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
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
4124e9e6de Editor: remove unused #define's.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Slava Zanko
15cb151fce Ticket #265: Search finds bold/underlined strings twice
Fixed starting offset for 'search again' action in nroffed text.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00
David Sterba
125a640977 Ticket #2573 (patchfs enchancement)
1. do follow:
    diff -BurpN file1.c file.c > my.patch;
    diff -BurpN file2.c file.c >> my.patch;
    2. we see two file.c.diff entries within patchfs.

    after apply commit, we have one combined patch-file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-16 14:41:00 +00:00
Ilia Maslakov
bdc7fc76cb changed README.extfs
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-16 13:10:02 +00:00
Ilia Maslakov
e8a0781934 Ticket #2467 (gitfs)
added new extfs plugin - gitfs
    used prefix [git] for identification as a #changesetfs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-16 13:10:01 +00:00
Andrew Borodin
20b7ab681e Ticket #2522: fixup of Backspace key behavior in QuickSearch mode.
When Backspace key is mapped to CdParentSmart action,
it changes directory to the parent one in QuickSearch mode instead of
delete the previous symbol in qsearch buffer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-15 20:40:55 +04:00