summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/entry.rb')
-rw-r--r--ext/tk/lib/tk/entry.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/entry.rb b/ext/tk/lib/tk/entry.rb
index 0fe553d55c..63051979e6 100644
--- a/ext/tk/lib/tk/entry.rb
+++ b/ext/tk/lib/tk/entry.rb
@@ -27,11 +27,13 @@ class TkEntry<TkLabel
def cursor
number(tk_send_without_enc('index', 'insert'))
end
+ alias icursor cursor
def cursor=(index)
tk_send_without_enc('icursor', index)
#self
index
end
+ alias icursor= cursor=
def index(idx)
number(tk_send_without_enc('index', idx))
end