]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.h
Collapse the two implementations of Entry::set_edit_position
[libs/gltk.git] / source / entry.h
index a350ea8890d2e91b75093c73bf601983eafc2c54..b6b4998662a91cba957fe43396ec90316e34a15e 100644 (file)
@@ -63,7 +63,7 @@ public:
        void erase(unsigned, unsigned);
        const std::string &get_text() const { return text.get(); }
 
-       void set_edit_position(unsigned);
+       void set_edit_position(unsigned p) { set_edit_position(p, false); }
        unsigned get_edit_position() const { return edit_pos; }
        bool get_selection(unsigned &, unsigned &) const;