We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aea3579 commit 22e5ebdCopy full SHA for 22e5ebd
ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
@@ -732,7 +732,7 @@ isUsedAsInfix line prefixMod prefixText pos
732
733
openingBacktick :: T.Text -> T.Text -> T.Text -> Position -> Bool
734
openingBacktick line prefixModule prefixText Position { _character=(fromIntegral -> c) }
735
- | backtickIndex < 0 || backtickIndex > T.length line = False
+ | backtickIndex < 0 || backtickIndex >= T.length line = False
736
| otherwise = (line `T.index` backtickIndex) == '`'
737
where
738
backtickIndex :: Int
0 commit comments