Skip to content

Commit

Permalink
chore: long token wrapping temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Oct 17, 2023
1 parent 8ed0532 commit f8083e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Beacon/Components/ReplInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct ReplInput: View {
var onSubmit: (() -> Void)?
var font: Font
var letters: [String] {
lang == .bqn ? glyphs : ["'", "/", "\\", "%", "*", "+", "-", "=", "!", "\"", ":"]
lang == .bqn ? glyphs : ["`", "'", "/", "\\", "%", "*", "+", "-", "=", "!", "\"", ":", "@"]
}

var body: some View {
Expand Down
2 changes: 0 additions & 2 deletions Beacon/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ struct ContentView: View {

func onMySubmit(input: String) {
switch input {
case _ where [#"\:"#, #"\h"#, #"\'"#, #"\`"#, #"\+"#, #"\\:"#].contains(input):
showHelp = true
case "clear":
viewModel.clear(b: curBuffer)
self.input = ""
Expand Down
1 change: 1 addition & 0 deletions Beacon/Views/HistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct HistoryView: View {
let isDarkTheme = (scheme == .dark)
let col = historyItem.lang == Language.k ? tokenToColorK(token.type, isDarkTheme) : tokenToColor(token.type)
Text(token.value)
.lineLimit(1) // HACK to stop long tokens from messing alignment
.foregroundColor(col)
.font(Font.custom("BQN386 Unicode", size: 18))
.onTapGesture {
Expand Down

0 comments on commit f8083e2

Please sign in to comment.