File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3457,7 +3457,7 @@ markdown.__list_item = function (buffer, item)
3457
3457
end
3458
3458
3459
3459
if type (indent_size ) ~= " number" then
3460
- shift_width = 1 ;
3460
+ indent_size = 1 ;
3461
3461
end
3462
3462
3463
3463
if item .marker == " -" then
Original file line number Diff line number Diff line change @@ -769,6 +769,10 @@ spec.default = {
769
769
wrap = true ,
770
770
771
771
indent_size = function (buffer )
772
+ if type (buffer ) ~= " number" then
773
+ return vim .bo .shiftwidth or 4 ;
774
+ end
775
+
772
776
--- Use 'shiftwidth' value.
773
777
return vim .bo [buffer ].shiftwidth or 4 ;
774
778
end ,
@@ -2232,6 +2236,10 @@ spec.default = {
2232
2236
enable = true ,
2233
2237
2234
2238
indent_size = function (buffer )
2239
+ if type (buffer ) ~= " number" then
2240
+ return vim .bo .shiftwidth or 4 ;
2241
+ end
2242
+
2235
2243
--- Use 'shiftwidth' value.
2236
2244
return vim .bo [buffer ].shiftwidth or 4 ;
2237
2245
end ,
You can’t perform that action at this time.
0 commit comments