1
0
forked from aniani/vim

patch 9.1.0560: bindtextdomain() does not indicate an error

Problem:  bindtextdomain() does not indicate an error
          (after v9.1.509)
Solution: return false on failure (OOM).
          (Chris van Willegen)

closes: #15116

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christ van Willegen
2024-07-11 21:36:21 +02:00
committed by Christian Brabandt
parent 965091001f
commit 8252ef134f
7 changed files with 64 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ balloon_gettext() String current text in the balloon
balloon_show({expr}) none show {expr} inside the balloon
balloon_split({msg}) List split {msg} as used for a balloon
bindtextdomain({package}, {path})
none bind text domain to specied path
Bool bind text domain to specified path
blob2list({blob}) List convert {blob} into a list of numbers
browse({save}, {title}, {initdir}, {default})
String put up a file requester
@@ -1228,7 +1228,10 @@ bindtextdomain({package}, {path}) *bindtextdomain()*
translations for a package. {path} is the directory name
for the translations. See |package-translation|.
Return type: none
Returns v:true on success and v:false on failure (out of
memory).
Return type: |vim9-boolean|
blob2list({blob}) *blob2list()*
Return a List containing the number value of each byte in Blob