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>
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>
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>
(vfs_class_data_find_by_handle, vfs_class_find_by_handle): move same
code to the separate function vfs_get_openfile().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
If first element is relative, the result path should be also relative
not absolute.
If first element is empty, the result path is relative.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
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>
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>
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>
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>
* 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
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>
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>