Skip to content

Commit 04f8783

Browse files
committed
The same as #31 but for PastePlugin
1 parent 1a7c19e commit 04f8783

File tree

1 file changed

+2
-0
lines changed
  • kshell/src/main/kotlin/com/github/khud/sparklin/kshell/plugins

1 file changed

+2
-0
lines changed

kshell/src/main/kotlin/com/github/khud/sparklin/kshell/plugins/PastePlugin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ class PastePlugin : Plugin {
4545
this.repl = repl
4646
this.console = repl.reader
4747
this.pasteConsole = repl.readerBuilder.highlighter(console.highlighter).build()
48+
4849
pasteConsole.option(LineReader.Option.DISABLE_HIGHLIGHTER, console.isSet(LineReader.Option.DISABLE_HIGHLIGHTER))
50+
pasteConsole.option(LineReader.Option.DISABLE_EVENT_EXPANSION, true)
4951
pasteConsole.setVariable(LineReader.SECONDARY_PROMPT_PATTERN, "")
5052

5153
repl.registerCommand(Paste(config))

0 commit comments

Comments
 (0)