Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-06-09 12:23:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-09 12:25:59 +0300
commit7d2b4ae9c6ecce394130cd08694914bf93497a11 (patch)
treefb5c850fe1f03f0296b6014811205b6a42527b55 /source
parent128296129a1ef0202a87a78dd8157d987ad6ff55 (diff)
Fix menu operator/search clipping the last character
Noted in T77504
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_region_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_region_search.c b/source/blender/editors/interface/interface_region_search.c
index 0007f6ab9a2..34bbb644ef7 100644
--- a/source/blender/editors/interface/interface_region_search.c
+++ b/source/blender/editors/interface/interface_region_search.c
@@ -279,7 +279,7 @@ bool ui_searchbox_apply(uiBut *but, ARegion *region)
const char *name = data->items.names[data->active];
const char *name_sep = data->use_sep ? strrchr(name, UI_SEP_CHAR) : NULL;
- BLI_strncpy(but->editstr, name, name_sep ? (name_sep - name) : data->items.maxstrlen);
+ BLI_strncpy(but->editstr, name, name_sep ? (name_sep - name) + 1 : data->items.maxstrlen);
but->func_arg2 = data->items.pointers[data->active];