]> git.wincent.com - docvim.git/commitdiff
Use actual max int rather than hard-coded constant
authorGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 14:38:46 +0000 (07:38 -0700)
committerGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 14:38:46 +0000 (07:38 -0700)
lib/Docvim/Printer/Vim.hs

index c60dd1f1fe66b145dac95ed65e52e4f47b33925b..4abea66e32b12090eb95a72154b19c8524d38cf2 100644 (file)
@@ -54,7 +54,7 @@ append string = append' string textwidth
 -- | Helper function that appends and updates `partialLine` context
 -- uncontitionally (no hard-wrapping).
 appendNoWrap :: String -> Env
-appendNoWrap string = append' string 1000000
+appendNoWrap string = append' string (maxBound :: Int)
 
 append' :: String -> Int -> Env
 append' string width = do