summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp4
1 files changed, 3 insertions, 1 deletions
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;