diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2020-04-30 22:48:32 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2020-05-01 10:05:37 +0200 |
| commit | c010f14a7ceb4e87df9e6e091fccf995f3f5b655 (patch) | |
| tree | 670b6613efd95410dcd7a49e8f606f2c4f184b26 /src/buffer_utils.cc | |
| parent | 83cdaee0025d40d2702fd0a170982678b0edd786 (diff) | |
Fix +line:col initial buffer position when connecting to session
A command line argument like +line[:column] can be used to specify a
target line and column for the first file.
This did not work when connecting to a session, because the client
opens its file parameter with `-e "edit file1; edit file2"` which is
executed after the initial buffer position is set. Work around this by
passing the position to the first file and avoid moving the cursor
in unrelated files.
Reproduce:
kak -s foo
kak -c foo +4:11 README.asciidoc
Diffstat (limited to 'src/buffer_utils.cc')
0 files changed, 0 insertions, 0 deletions
