Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7337c35

Browse files
committed
remove const
It was only added in Vim 8.1.1539 and provides no real benefit here.
1 parent 47bbd29 commit 7337c35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎autoload/css_color.vim‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ function! s:hsl2color(h,s,l)
3838
return printf( '%02x%02x%02x', rgb[0], rgb[1], rgb[2] )
3939
endfunction
4040

41-
const s:_1_3 = 1.0/3
42-
const s:_16_116 = 16.0/116.0
43-
const s:cos16 = cos(16*(180/atan2(0,-1)))
44-
const s:sin16 = sin(16*(180/atan2(0,-1)))
41+
let s:_1_3 = 1.0/3
42+
let s:_16_116 = 16.0/116.0
43+
let s:cos16 = cos(16*(180/atan2(0,-1)))
44+
let s:sin16 = sin(16*(180/atan2(0,-1)))
4545

4646
function s:rgb2din99(rgb)
4747
let [r,g,b] = map( copy(a:rgb), 'v:val > 0.04045 ? pow((v:val + 0.055) / 1.055, 2.4) : v:val / 12.92' )

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /