Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wibble

  • Loading branch information...
commit 023fd9e8e4e3421445bf23366574e6a5738e1987 1 parent 31bfa08
@reinerp reinerp authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 yi/src/library/Yi/Modes.hs
View
4 yi/src/library/Yi/Modes.hs
@@ -10,7 +10,7 @@ module Yi.Modes (TokenBasedMode, fundamentalMode,
) where
import Prelude ()
-import Data.List ( isPrefixOf, isSuffixOf, map, filter )
+import Data.List ( isPrefixOf, map, filter )
import Data.Maybe
import System.FilePath
import Text.Regex.TDFA ((=~))
@@ -116,7 +116,7 @@ gitCommitMode = (linearSyntaxMode GitCommit.initState GitCommit.alexScanToken id
{
modeName = "git-commit",
modeApplies = \path _ -> takeFileName path == "COMMIT_EDITMSG" &&
- ".git" `isSuffixOf`(takeDirectory path)
+ takeFileName (takeDirectory path) == ".git"
}
svnCommitMode = (linearSyntaxMode SVNCommit.initState SVNCommit.alexScanToken id)
Please sign in to comment.
Something went wrong with that request. Please try again.