diff options
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r-- | src/CommandDialog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc index 813fbd0..943302b 100644 --- a/src/CommandDialog.cc +++ b/src/CommandDialog.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: CommandDialog.cc,v 1.3 2004/01/02 13:53:21 fluxgen Exp $ | 23 | // $Id: CommandDialog.cc,v 1.4 2004/01/21 13:16:09 fluxgen Exp $ |
24 | 24 | ||
25 | #include "CommandDialog.hh" | 25 | #include "CommandDialog.hh" |
26 | 26 | ||
@@ -173,7 +173,7 @@ void CommandDialog::tabComplete() { | |||
173 | if (first == string::npos) | 173 | if (first == string::npos) |
174 | first = 0; | 174 | first = 0; |
175 | string prefix = FbTk::StringUtil::toLower(m_textbox.text().substr(first, m_textbox.cursorPosition())); | 175 | string prefix = FbTk::StringUtil::toLower(m_textbox.text().substr(first, m_textbox.cursorPosition())); |
176 | if (prefix.size() == 0) { | 176 | if (prefix.empty()) { |
177 | XBell(FbTk::App::instance()->display(), 0); | 177 | XBell(FbTk::App::instance()->display(), 0); |
178 | return; | 178 | return; |
179 | } | 179 | } |