diff options
author | Jente Hidskes <hjdskes@gmail.com> | 2017-02-17 23:29:42 +0100 |
---|---|---|
committer | Sander Bosma <sanderbosma@gmail.com> | 2017-02-20 19:56:58 +0100 |
commit | 04fb65fd76af2fda4302fd79b81f59085d2d5fbe (patch) | |
tree | 4fba81a6e0c65af59a467f1bafa7adfe54da9eb7 /scripts/gen_api_vimdoc.py | |
parent | ddab4661f7acad985096138b0c29a2b7e569022a (diff) | |
download | rneovim-04fb65fd76af2fda4302fd79b81f59085d2d5fbe.tar.gz rneovim-04fb65fd76af2fda4302fd79b81f59085d2d5fbe.tar.bz2 rneovim-04fb65fd76af2fda4302fd79b81f59085d2d5fbe.zip |
screen.c: account for translated string length
`[RO]` is appended to the status line and `len` is increased with the length of
this string (4). However, the string is marked for translation and may
thus well be larger (or smaller) than 4. Therefore, we check the length at
runtime. The resulting len is never actually used, and thus could be removed.
However, by keeping this line, the body of this if-statement is kept consistent
with surrounding code, and future changes can not forget to add this line when
additional strings are added to p.
Diffstat (limited to 'scripts/gen_api_vimdoc.py')
0 files changed, 0 insertions, 0 deletions