diff options
| author | Hugo Musso Gualandi <hugo_musso_gualandi@hotmail.com> | 2021-07-13 13:21:47 -0300 |
|---|---|---|
| committer | Hugo Musso Gualandi <hugo_musso_gualandi@hotmail.com> | 2021-07-13 13:28:30 -0300 |
| commit | f440a1c109b7e7050b9088ace138eea0d474646c (patch) | |
| tree | 5b7e944e6052343400fdedaa11c43d6937a91fed /src/string_utils.hh | |
| parent | ac6420ee8d3a1395d358aa6f6b860e2405906c07 (diff) | |
Lua: insert comment prefix *after* the indent
This fixes a bug in how the Lua scripts handle new comment lines.
Currently if we have a comment that is indented, when we add a new line
it inserts the `--` prefix before the automatic indentation.
```
--ABC
-- XYZ
```
After the fix, it correctly inserts the comment prefix after the
indentation:
```
--ABC
--XYZ
```
The solution I used is inspired by the ruby.kak script.
Diffstat (limited to 'src/string_utils.hh')
0 files changed, 0 insertions, 0 deletions
