Skip to content

Commit

Permalink
Fixed bug when pressing tab on an empty string in the ETGModConsole (M…
Browse files Browse the repository at this point in the history
…odTheGungeon#14)

(Also added .idea to the .gitignore)
  • Loading branch information
markusmo3 authored and zatherz committed Sep 1, 2018
1 parent ac48b99 commit a33bd47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ bld/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# Jetbrains Rider project directory
.idea/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
Expand Down
2 changes: 1 addition & 1 deletion Assembly-CSharp.Base.mm/src/ETGGUI/ETGModConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public void ShowAutocomplete() {
*/

string matchkeyword = string.Empty;
if (!inputtext.EndsWithInvariant(" ")) {
if (!inputtext.EndsWithInvariant(" ") && inputtext.Length > 0) {
matchindex--;
matchkeyword = input[input.Length - 1];
}
Expand Down

0 comments on commit a33bd47

Please sign in to comment.