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 742f7ba commit 5baf6e5Copy full SHA for 5baf6e5
ghcide/src/Development/IDE/Plugin/Completions/Logic.hs
@@ -636,7 +636,7 @@ isUsedAsInfix line prefixMod prefixText pos
636
637
openingBacktick :: T.Text -> T.Text -> T.Text -> Position -> Bool
638
openingBacktick line prefixModule prefixText Position { _character }
639
- | backtickIndex < 0 = False
+ | backtickIndex < 0 || backtickIndex > T.length line = False
640
| otherwise = (line `T.index` backtickIndex) == '`'
641
where
642
backtickIndex :: Int
0 commit comments