diff options
Diffstat (limited to 'buffer.cpp')
-rw-r--r-- | buffer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |