From 66e0b88d27966adae568f4f2ddbf2ff10bb812d9 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 12 Jan 2017 22:10:20 +0100 Subject: Proper tab closing --- buffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buffer.cpp') diff --git a/buffer.cpp b/buffer.cpp index b185b99..6fa7420 100644 --- a/buffer.cpp +++ b/buffer.cpp @@ -189,6 +189,8 @@ void Buffer::handleCommand(const Command &cmd){ } else { cursor.x=screen[sp.y].cells[sp.x].linex; } + } else if(cmd[0]=="cancel"){ + bel(); //nothing to cancel, apparently } else { THROW("Unknown command: "+cmd[0]); } @@ -401,7 +403,7 @@ Buffer::Screenpos Buffer::findCursorInScreen() const { } } -i64 numberWidth(i64 number){ +static i64 numberWidth(i64 number){ if(number<0)return 1+numberWidth(-number); if(number==0)return 1; return (i64)log10(number)+1; -- cgit v1.2.3-70-g09d2