Veres Lajos
805703523d
Misspellings fixes by https://github.com/vlajos/misspell_fixer
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-15 11:10:41 +04:00
Slava Zanko
4b1f94e873
Direct commit in master: fix bug with a directory deletion
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-06-12 15:15:57 +03:00
Slava Zanko
56520fda0f
Ticket #3016 : Segfault while entering into extfs archive
...
Current master (4.8.8-49-g6b64835) segfaults while entering into any extfs archive (zip, rar, etc).
Bad commit is 2640b21bb9
.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-06-12 12:01:33 +03:00
Andrew Borodin
74ed317f35
Cleanup: remove unused 'prompt_pos' variable.
...
(do_subshell_chdir): remove 'reset_prompt' argument because of removed
'prompt_pos'.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-08 18:06:55 +04:00
Andrew Borodin
f6684c638d
Ticket #3001 : fix read and update of subshell prompt.
...
The bug was introduced in e35f044ccd
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-08 18:06:54 +04:00
Andrew Borodin
7b5b41147d
Ticket #3000 : incorrect file size is reported in copy/move overwrite query dialog.
...
(overwrite_query_dialog): adjust file size.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-07 12:11:14 +04:00
Boris Savelev
426f114a93
Remove LC_ALL from info_size.
...
INFO file generate without LC_ALL e.g. in current locale. Size must be computed with same locale, otherwise INFO file will be chopped of
2013-06-03 14:21:03 +03:00
Andrew Borodin
6b0ee515ad
mceditor: last_bracket: make member of WEdit.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:03 +03:00
Andrew Borodin
e7dc599e42
Use "'" instead of "`" for messages and comments quoting.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:03 +03:00
Andrew Borodin
d0955f3793
Search callbacks should return mc_search_cbret_t not int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:03 +03:00
Andrew Borodin
f89d862241
Minor otimization of syntax highlightimg engine:
...
ret rid of extra copying of WEdit::rule.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
7b574f1dbc
(compare_word_to_right): use correct upper boundary of scanned text.
2013-06-03 14:21:02 +03:00
Andrew Borodin
412095a562
option_whole_chars_search: unsed variable. Remove it and related code.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
1e985bc7df
(edit_update_screen): fix of editor frame drawing.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
b9c0b56928
src/editor/editcmd.c: remove unneeded include layout.h.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
57bb2b87c2
(edit_about): update year.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
6d31d85f0d
Use tty_draw_box instead of draw_box() to draw frames.
...
* (draw_box): remove.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:02 +03:00
Andrew Borodin
a35ee6aebc
(smbfs_fake_share_stat): don't access to free'd memory.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 14:21:01 +03:00
Slava Zanko
2640b21bb9
Remove vfs_path_to_str() function for avoid often memory allocations.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-06-03 14:21:01 +03:00
Andrew Borodin
31bacf56c9
Use G_N_ELEMENTS macro to calculate of array size.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 10:58:14 +03:00
Andrew Borodin
9f80eda26e
WEdit::labels is unused. Remove.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 10:58:14 +03:00
Slava Zanko
80c8d58003
remove the include duplicates from source files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-06-03 10:58:14 +03:00
Andrew Borodin
6d172837f0
(subshell_name_quote): use GString for string forming.
...
(do_subshell_chdir): changed related to modified subshell_name_quote().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-06-03 10:58:13 +03:00
Andrew Borodin
923d379d5a
Code indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-04-12 09:40:55 +04:00
Andrew Borodin
02265113cd
Merge branch '2968_viewer_next_prev_mode'
...
* 2968_viewer_next_prev_mode:
Fix mode switch after CK_FileNext/CK_FilePrev.
(regex_command_for): new function to use regex_command in already created viewer/editor
(exec_extension): rename variable.
(exec_extension_view): refactoring: remove temporary file in exec_extension().
Ticket #2968 : mcviewer: broken Raw/Parse and Format/UnformatRaw/Parse and Format/Unformat
2013-04-12 09:14:12 +04:00
Andrew Borodin
d70f6b5b63
Fix mode switch after CK_FileNext/CK_FilePrev.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-04-05 19:16:41 +04:00
Andrew Borodin
4d0f17e79a
(regex_command_for): new function to use regex_command in already created viewer/editor
...
...and related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-04-05 19:16:38 +04:00
Andrew Borodin
bd8ad7e94b
(exec_extension): rename variable.
2013-04-05 19:15:31 +04:00
Slava Zanko
4404af92c0
Ticket #2980 : Add missing doc/hints french translation
...
Hints was split by paragraph (by double new line symbol instead of single newline symbol)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-04-02 11:07:42 +03:00
Andrew Borodin
5c01fea888
(exec_extension_view): refactoring: remove temporary file in exec_extension().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-30 12:20:39 +04:00
Andrew Borodin
b7d42cc1e5
Indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-29 19:06:27 +04:00
Andrew Borodin
41d5ee716e
(editcmd_dialog_completion_show): adjust dialog position.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-28 16:53:04 +04:00
Andrew Borodin
4b9e5f50b1
(edit_complete_word_cmd): don't get bytes directly from editor buffer.
...
(edit_get_match_keyword_cmd): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-28 16:53:04 +04:00
Andrew Borodin
77af739bdd
(edit_complete_word_cmd): make correct charset conversion
...
...before insert autocompletion result.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-03-28 16:50:22 +04:00
Andrew Borodin
4495957319
Ticket #2968 : mcviewer: broken Raw/Parse and Format/UnformatRaw/Parse and Format/Unformat
...
...after CK_FileNext/CK_FilePrev.
Initial commit: refactoring of mcview_t typedef.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-24 13:37:11 +04:00
Andrew Borodin
7fe85d0bd8
Ticket #2957 : broken autocompletion in mcedit
...
...if system and file charsets are different.
Initial step: refactoring: do actual completion word substitution
outside of editcmd_dialog_completion_show().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-21 09:27:08 +04:00
Gergely Szász
b8208b0514
Ticket #2976 : magic mode is broken in mcview.
...
The bug:
If we open a file with F3 from panels, then mc uses "file extension"
style open (e.g. archive.sh) and Format/Raw switching is O.K.
If we open file in "Raw" mode, or use quick view, mc opens files
without "file extension" helpers. Format/Raw switching is broken.
In mcview_load() we check magic_mode and detect "compressed" files.
If magic mode is on and file is "compressed" we free the current vpath
and generate a new vpath with "decompress magic", but nothing else.
So, the file name disappear and we see the raw content.
After user press F8, mcview reloads the file. Now filename is the "new"
magic filename. mcview_load() open the file with the decompress "helper"
(using sfs). We see the uncompressed (parsed) content.
After user press F8, nothing happend, because original file name is lost.
The solution:
Remove the old vpath destruction.
Open the file with "uncopress magic" if magic_mode is on and file is
"compressed".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-20 17:01:38 +04:00
Andrew Borodin
68609b79b0
Code indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-12 14:05:10 +04:00
Andrew Borodin
2254b24008
Refactoring: use GString instead of "struct selection".
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:51 +04:00
Andrew Borodin
18cc9ac0dd
(edit_translate_key): move from editkeys.c into editwidget.c
...
...and remove editkeys.c since it is empty.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
a85fc3367e
Sync with gnulib 62bb7a8bf95807d6339e1e17fc0d21c319b280a2.
...
* src/filemanager/lib/mountlist.c: port to HP NonStop.
(hasmntopt) [!HAVE_HASMNTOPT]: New function.
(MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
b3bc856974
Adjust look'n'feel of editor options dialog window.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
6787221c15
(overwrite_query_dialog): adjust dialog size.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
30959e0b7d
Clarify widget redraw in runtime.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
f1316549a2
(edit_insert_over): move from src/editor/editcmd.c into src/editor/edit.c.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
17ceb233b0
(edit_insert_column_of_text_from_file): refactoring:
...
* move from src/editor/editcmd.c into src/editor/edit.c and make static;
* rename to edit_insert_column_from_file;
* make some refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
ef35db06d2
(edit_get_byte): refactoring: use edit_get_byte_ptr().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:19 +04:00
Andrew Borodin
556192bd4a
(init_panelize): support --disable-nls.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:18 +04:00
Andrew Borodin
c52003ec43
More use SELECTED_IS_PANEL define.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:18 +04:00
Andrew Borodin
f6a5241e18
(mcview_scroll_to_cursor): make static.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-03-09 16:04:18 +04:00