File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -267,9 +267,12 @@ function Rename:init(info)
267267 self .sync_targets = info .sync_targets or {}
268268 self .cache = {}
269269
270- if self .target .type == df .language_name_type .NONE then
271- self .target .type = df .language_name_type .Figure
270+ local function normalize_name ()
271+ if self .target .type == df .language_name_type .NONE then
272+ self .target .type = df .language_name_type .Figure
273+ end
272274 end
275+ normalize_name ()
273276
274277 local language_options , max_lang_name_width = get_language_options ()
275278
@@ -285,6 +288,7 @@ function Rename:init(info)
285288 select_new_target (function (target , sync_targets )
286289 if not target then return end
287290 self .target , self .sync_targets = target , sync_targets or {}
291+ normalize_name ()
288292 self .subviews .language :setOption (self .target .language )
289293 end )
290294 end ,
You can’t perform that action at this time.
0 commit comments