Skip to content

Commit e9dc569

Browse files
committed
refactor: duplicate folding range functionality
1 parent d6a8666 commit e9dc569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hls-code-range-plugin/src/Ide/Plugin/CodeRange.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ removeDupStartLineFoldings :: [FoldingRange] -> [FoldingRange]
175175
removeDupStartLineFoldings [] = []
176176
removeDupStartLineFoldings [x] = [x]
177177
removeDupStartLineFoldings (frx@(FoldingRange x _ _ _ _):xs@((FoldingRange y _ _ _ _):xs2))
178-
| x == y = removeDupStartLineFoldings ([frx]++xs2)
178+
| x == y = removeDupStartLineFoldings (frx:xs2)
179179
| otherwise = frx : removeDupStartLineFoldings xs
180180

181181
-- | Likes 'toCurrentPosition', but works on 'SelectionRange'

0 commit comments

Comments
 (0)