about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-07 19:48:46 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-07 19:48:46 +0200
commit8b35f35bec9b14d33811910cb1e5d78b16843ca0 (patch)
tree6cce3761f6399d10af103e5c64a0a5b5a7668f89 /src
parent9451863c968aaa19a175aa6ff42c099b8fe7d908 (diff)
downloadchawan-8b35f35bec9b14d33811910cb1e5d78b16843ca0.tar.gz
container: remove strformat dependency
Diffstat (limited to 'src')
-rw-r--r--src/buffer/container.nim6
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: