Skip to content

Commit

Permalink
Version 2.0.3
Browse files Browse the repository at this point in the history
* Fix a seg-fault when trying to tab-complete an empty command
  • Loading branch information
gahr committed Aug 4, 2014
1 parent c5ec8c2 commit 385831f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)

SET (TL_PROJECT_NAME thingylaunch)
SET (TL_PROJECT_VERS 2.0.2)
SET (TL_PROJECT_VERS 2.0.3)

PROJECT (${TL_PROJECT_NAME} CXX C)

Expand Down
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- 2.0.3
* Fix a seg-fault when trying to tab-complete an empty command

- 2.0.2
* Do not duplicate identical entries at the end of the history
* Import the std namespace in implementation files
Expand Down
4 changes: 4 additions & 0 deletions completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ Completion::~Completion()
string
Completion::next(string command)
{
if (command.empty()) {
return command;
}

if (m_prefix.empty()) {
m_prefix = command;
}
Expand Down

0 comments on commit 385831f

Please sign in to comment.