From a07ad8e9264d210b5f0f4ddc8d98f4751bfeaf1b Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 21 Jan 2019 09:20:06 +0000 Subject: [PATCH] Added support for the standard "Delete line" control keys (Ctrl-Y/X) to the the internal message editor. It doesn't redraw the lines below the deleted line or do anything terribly fancy, but at least it behaves more as one would expect. --- src/sbbs3/writemsg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sbbs3/writemsg.cpp b/src/sbbs3/writemsg.cpp index ca98cc3f6f..1d98ea14b8 100644 --- a/src/sbbs3/writemsg.cpp +++ b/src/sbbs3/writemsg.cpp @@ -865,6 +865,10 @@ ulong sbbs_t::msgeditor(char *buf, const char *top, char *title) line--; continue; } + if(console&CON_DELETELINE) { + strListDelete(&str, line); + continue; + } newline(); if(console&CON_DOWNARROW) { if(str[line] != NULL) { -- GitLab