Two common line jump protocols supported by mc are:
* mcedit +lineno file
* mcedit file:lineno
Unfortunately, in the implementation of the first protocol, if line
number equals to zero, which is often used to position the cursor at the
beginning of the file, it is completely ignored and file "+0" is opened
instead.
This patch fixes aforementioned issue.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
* 2237_man_pages:
Ticket #2253: fixed formatting of DONT_SPLIT option.
Fixed Russian man page.
Fixed a typo and bad grammar in man2hlp.
Fixed man2hlp warnings by renaming conflicting LANG variable to HLP_LANG.
Now date of modification is automatically filled in header of man page.
Fixed typos in docs.
Performed a RegExp mass replacement in the manual pages of
Typo fixes (English man page).
Ticket #2237: Automatic date and version substitution for man pages
Currently the date and the version of Midnight Commander in the man
pages has to be changed manually every release. This is being done
sporadically and as the result, the man pages shipped for e.g. 4.7.2
release contain the 4.7.0-pre1 signature, which is quite confusing.
With this patch, the version is substituted with @DISTR_VERSION@ for all
the man pages and the date is automatically updated to the English man
pages. Other man pages still have the manually updated date of the last
translation.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
The following functions:
directory_history_add
directory_history_next
directory_history_prev
directory_history_list
get_parent_dir_name
_do_panel_cd
do_panel_cd
were moved from main.[ch] to screen.c and panel.h.
Type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
These functions were used before implementation of panel key bindings.
Now these wrappers are unneded.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mcdiff: some warnings fixed.
search.c: In function ‘mcdiffview_do_search_backward’:
search.c:183: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
ydiff.c: In function ‘cvt_fget’:
ydiff.c:1653: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
ydiff.c: In function ‘dview_execute_cmd’:
ydiff.c:3085: warning: overflow in implicit constant conversion [-Woverflow]
fixed mcdiff search.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
* 212_viewer_help_hardcoded_keys:
check_movement_keys() function is unused. Removed.
Added bindings for vertical scrolling of interactive help.
check_movement_keys() function is not used now in viewer.
Fixed movement to the bottom of file in viewer in hex mode.
Ticket #212: replacement of hardcoded keys in viewer and interactive help.
Added new viewer keybindings instaed of hardcoded keys:
- for move to top and bottom of file;
- for horizontal scroll by 10 columns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Initial step: added description for A1 and C1 keys.
A1 and C1 keybindings are applied to WTree, WInput and WPanel widgets.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>