Skip to content

Commit

Permalink
v3.0.0.45 - Fix Tags textbox not handling space being first.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous authored and Anonymous committed Nov 28, 2024
1 parent 561de43 commit 0be5287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e621 ReBot v3/Windows/Window_Tagger.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void Tags_TextBox_PreviewKeyDown(object sender, KeyEventArgs e)
{
case Key.Space:
{
if (Tags_TextBox.Text.Substring(Tags_TextBox.SelectionStart - 1, 1).Equals(" "))
if (Tags_TextBox.SelectionStart > 0 && Tags_TextBox.Text.Substring(Tags_TextBox.SelectionStart - 1, 1).Equals(" "))
{
e.Handled = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion e621 ReBot v3/e621 ReBot v3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ApplicationIcon>Resources\ReBot_Icon.ico</ApplicationIcon>
<Platforms>x64</Platforms>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<FileVersion>3.0.0.44</FileVersion>
<FileVersion>3.0.0.45</FileVersion>
<StartupObject>e621_ReBot_v3.App</StartupObject>
<IsPublishable>False</IsPublishable>
<RepositoryUrl>https://github.com/e621-ReBot/e621-ReBot-v3</RepositoryUrl>
Expand Down

0 comments on commit 0be5287

Please sign in to comment.