mirror of https://github.com/MidnightCommander/mc
Ticket #3044: invalid order of filename and line number for external editor.
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>
This commit is contained in:
parent
4c3d5df63b
commit
4e6dc8cbc9
18
misc/mc.lib
18
misc/mc.lib
|
@ -1,13 +1,13 @@
|
|||
[External editor or viewer parameters]
|
||||
vi=%filename +%lineno
|
||||
vim=%filename +%lineno
|
||||
view=%filename +%lineno
|
||||
emacs=%filename +%lineno
|
||||
nano=%filename +%lineno
|
||||
joe=%filename +%lineno
|
||||
more=%filename +%lineno
|
||||
less=%filename +%lineno
|
||||
mcedit=%filename:%lineno
|
||||
vi=+%lineno %filename
|
||||
vim=+%lineno %filename
|
||||
view=+%lineno %filename
|
||||
emacs=+%lineno %filename
|
||||
nano=+%lineno %filename
|
||||
joe=+%lineno %filename
|
||||
more=+%lineno %filename
|
||||
less=+%lineno %filename
|
||||
mcedit=%filename:%lineno
|
||||
|
||||
[Special dirs]
|
||||
list=/afs;/coda;/:;/...;/net;/#smb
|
||||
|
|
Loading…
Reference in New Issue