1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-24 12:02:15 +03:00

Support the vim behaviour for +line syntax

* Ommitting the linenumber will move to buffer end
This commit is contained in:
Eike Plack 2017-01-31 19:44:27 +01:00
parent 34870eb353
commit 01eceebf75

View File

@ -819,6 +819,11 @@ int main(int argc, char* argv[])
{ {
if (not name.empty() and name[0_byte] == '+') if (not name.empty() and name[0_byte] == '+')
{ {
if (name == "+" or name == "+:")
{
init_cmds = init_cmds + "; exec gj";
continue;
}
auto colon = find(name, ':'); auto colon = find(name, ':');
if (auto line = str_to_int_ifp({name.begin()+1, colon})) if (auto line = str_to_int_ifp({name.begin()+1, colon}))
{ {