File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ You can use command `Colorbox` to control the player with below subcommands:
194
194
- ` reinstall ` : Clean & re-install all git submodules.
195
195
- ** Note:** use ` concurrency=1 ` to specify the ` concurrency ` parameters.
196
196
- ` info ` : Show detailed information and configured status.
197
- - ** Note:** use ` scale=0.7 ` to specify popup window's size in range ` (0, 1) ` , by default is ` scale=0.7 ` .
197
+ - ** Note:** use ` scale=0.7 ` to specify popup window's size in range ` (0, 1] ` , by default is ` scale=0.7 ` .
198
198
199
199
> [ !NOTE]
200
200
>
Original file line number Diff line number Diff line change @@ -729,6 +729,7 @@ local function _info(args)
729
729
opts = opts or { scale = 0.7 }
730
730
opts .scale = type (opts .scale ) == " string" and (tonumber (opts .scale ) or 0.7 )
731
731
or 0.7
732
+ opts .scale = numbers .bound (opts .scale , 0 , 1 )
732
733
logging .get (" colorbox" ):debug (" |_info| opts:%s" , vim .inspect (opts ))
733
734
734
735
local total_width = vim .o .columns
You can’t perform that action at this time.
0 commit comments