doc: Adjust documentation a bit

2 spaces after sentense ends, clarify what will be highlighted.
This commit is contained in:
ZyX
2017-07-17 02:32:32 +03:00
parent dc0a496d41
commit cb3c71eac9

View File

@@ -4725,9 +4725,10 @@ input({opts})
let fname = input("File: ", "", "file")
<
The optional highlight key allows specifying function which
will be used for highlighting. This function receives user
input as its only argument and must return a list of 3-tuples
[hl_start_byte, hl_end_byte + 1, hl_group] where
will be used for highlighting user input. This function
receives user input as its only argument and must return
a list of 3-tuples [hl_start_byte, hl_end_byte + 1, hl_group]
where
hl_start_byte is the first highlighted byte,
hl_end_byte is the last highlighted byte (+ 1!),
hl_group is |:hl| group used for highlighting.
@@ -4735,7 +4736,7 @@ input({opts})
Both hl_start_byte and hl_end_byte + 1 must point to the start
of the multibyte character (highlighting must not break
multibyte characters), hl_end_byte + 1 may be equal to the
input length. Start column must be in range [0, len(input)),
input length. Start column must be in range [0, len(input)),
end column must be in range (hl_start_byte, len(input)],
sections must be ordered so that next hl_start_byte is greater
then or equal to previous hl_end_byte.