aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--archived.md2
-rw-r--r--ui.c4
3 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index cb485bb..4270c72 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,11 @@ The idea is the following:
- [ ] bug: wrapping does not work and displays nothing if there is no screen space
- [ ] bug: reconnect does not work when server does not know id
- [ ] convert tabs to spaces
+- [ ] newline support
## server
- [ ] check that fds arena does not overflow
+ - free clients which disconnected and use free list to give them space
- [ ] check if when sending and the client is offline (due to connection loss) what happens
- [ ] timeout on recv?
- [ ] use threads to handle clients/ timeout when receiving because a client could theoretically
diff --git a/archived.md b/archived.md
index afebf8b..62def2d 100644
--- a/archived.md
+++ b/archived.md
@@ -13,6 +13,8 @@
- [x] use error type success to say that authentication succeeded
- [x] markup for messages
- [x] clipboard shortcut
+- [x] tab as spaces support
+- [x] fixed empty messages with markup characters
## Server
- [x] import clients
diff --git a/ui.c b/ui.c
index c2e0ac9..8d7cab4 100644
--- a/ui.c
+++ b/ui.c
@@ -182,13 +182,13 @@ tb_print_wrapped_with_markdown(u32 XOffset, u32 YOffset, u32 fg, u32 bg,
for (u32 TextIndex = 0; TextIndex < Len; TextIndex++)
{
- if (MDFormat.Len &&
+ if (MDFormatOptionsIndex < MDFormat.Len &&
TextIndex == MDFormat.Options[MDFormatOptionsIndex].Position)
{
fg ^= MDFormat.Options[MDFormatOptionsIndex].Color;
MDFormatOptionsIndex++;
}
- if (WrapPositionsLen &&
+ if (WrapPositionsIndex < WrapPositionsLen &&
TextIndex == WrapPositions[WrapPositionsIndex])
{
Y++;