diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-07 19:48:46 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-07 19:48:46 +0200 |
commit | 8b35f35bec9b14d33811910cb1e5d78b16843ca0 (patch) | |
tree | 6cce3761f6399d10af103e5c64a0a5b5a7668f89 /src | |
parent | 9451863c968aaa19a175aa6ff42c099b8fe7d908 (diff) | |
download | chawan-8b35f35bec9b14d33811910cb1e5d78b16843ca0.tar.gz |
container: remove strformat dependency
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer/container.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim index 44a1c99c..143c169b 100644 --- a/src/buffer/container.nim +++ b/src/buffer/container.nim @@ -1,7 +1,6 @@ import deques import options import streams -import strformat import strutils import unicode @@ -596,7 +595,10 @@ proc alert(container: Container, msg: string) = container.triggerEvent(ContainerEvent(t: ALERT, msg: msg)) proc lineInfo(container: Container) {.jsfunc.} = - container.alert(fmt"line {container.cursory + 1}/{container.numLines} ({container.atPercentOf}%) col {container.cursorx + 1}/{container.currentLineWidth} (byte {container.currentCursorBytes})") + container.alert("line " & $(container.cursory + 1) & "/" & + $container.numLines & " (" & $container.atPercentOf() & "%) col " & + $(container.cursorx + 1) & "/" & $container.currentLineWidth & + " (byte " & $container.currentCursorBytes & ")") proc updateCursor(container: Container) = if container.pos.setx > -1: |