Most applications require the line number to precede the filename,
with apparently 'vim' and 'mcedit' being the only exceptions
(they accept both possible orders). E.g. 'emacs +10 /etc/services'
opens that file at line 10, but 'emacs /etc/services +10' simply
ignores the line number.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3051_cleanup: (27 commits)
Use AC_HEADER_MAJOR.
Don't use g_memmove().
Fix use of uninitialized memory in sigaction structure.
Clarify usage of MSG_IDLE in mcedit.
Fix search in internal viewer in case of nroff mode.
Use g_list_free_full().
Use g_slist_free_full().
Fix directory content counting before file operation.
(me_remote): don't use undefined _GL_UNUSED.
(file_mask_dialog): don't call tilde_expand() because vfs_path_from_str() returns an absolute path.
Fix reloading of the root directory.
Reduce cppcheck warnings (style) in src subdirectory.
Clarify usage of WPanel widget.
Rename structures:
Reduce cppcheck warnings (style) in lib subdirectory.
cppcheck: reduce variable scope.
Use UTF8_CHAR_LEN instead of a magic number
(lcsubstr): fix memory deallocation.
(panel_get_field_by_title): fix memory leak.
(sftpfs_open_file): fix memory leak.
...
Instead of checking for sys/mkdev.h headerfile, there is the
AC_HEADER_MAJOR helper for how to get major(), minor(), makedev().
Sinc with GLib efb1701bf3baf6f5b05fd1a7a5a4ff990a7dc460.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This patch fixes syntax highlighting for files in .config directory
(I was wondering why my rc.lua file in ~/.config/awesome is highlighted
as 'Java File' while in /etc/xdg/awesome it was highlighted correctly).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
From ticket #3044: mc.lib typo: linenog
mc.lib has a typo. "less=%filename +%linenog" instead of "+%lineno"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
The "Options -> Save setup" menu entry tells me "Setup saved to
~/.config/mc/ini".
This information is misleading, since this is not the only file
written, e.g. panels.ini is also updated.
Now this message contains the directory only:
"Setup saved to ~/.config/mc".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
In the command line, the subdirectory completion in current directory
isn't performed if stub isn't starting with './'.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
If checkbox is the first focusable widget in a dialog, it taken the MSG_DRAW
message after MSG_FOCUS one and therefore wasn't highlighted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3076_num_history_items_recorded_0:
Refactoring of WInput history.
Remove WInput::field_width. Use Widget::cols instead.
(input_update): don't do anything if widget is unowned or is in inactive dialog.
Ticket #3076: copy/move doesn't work if num_history_items_recorded=0.