summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorLoric Brevet <loric.brevet@gmail.com>2022-11-11 12:59:34 +0100
committerLoric Brevet <loric.brevet@gmail.com>2022-11-15 10:10:24 +0100
commit199b7ea1659c27f87a46bc96ce3e9a9366eb4102 (patch)
tree4a401791dad8b672083f1db3762fd28e6c20c22a /src/input_handler.cc
parent91d45a100a39345f06d9789ded9172fe60887c27 (diff)
Adjust regex in gopls-def for when filepath contains a dash
When calling `:gopls definition`, the gopls LSP server returns the location of the selected definition. Then, `gopls.kak` tries to parse this output to feed the `:edit` command and open the file in Kakoune. To do this, it uses `sed` to transform `<path>.go:<line>:<colstart>-<colend>` to `<path>.go <line> <colstart>`. However, if the `<path>` contains a dash character, the `sed` will fail and strip everything after this first dash, removing the line and columns information. Closes #4776
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions