diff --git a/lib/weechat/input.rb b/lib/weechat/input.rb
index <HASH>..<HASH> 100644
--- a/lib/weechat/input.rb
+++ b/lib/weechat/input.rb
@@ -25,6 +25,7 @@ module Weechat
     def size
       @buffer.input_buffer_size
     end
+    alias_method :length, :size
 
     def pos
       @buffer.input_buffer_pos
added alias Input#length to Input#size