Skip to content

Commit

Permalink
Allow single-char finds
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankueng committed Jan 15, 2024
1 parent df983e2 commit 1134801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/CmdFindReplace.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of BowPad.
//
// Copyright (C) 2013-2023 - Stefan Kueng
// Copyright (C) 2013-2024 - Stefan Kueng
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -3051,7 +3051,7 @@ bool CCmdFindSelectedNext::Execute()
{
g_sHighlightString.clear();
auto selTextLen = Scintilla().GetSelText(nullptr);
if (selTextLen <= 1) // Includes zero terminator so 1 means none.
if (selTextLen < 1)
{
DocScrollUpdate();
return false;
Expand Down Expand Up @@ -3093,7 +3093,7 @@ bool CCmdFindSelectedPrev::Execute()
{
g_sHighlightString.clear();
auto selTextLen = Scintilla().GetSelText(nullptr);
if (selTextLen <= 1) // Includes zero terminator so 1 means none.
if (selTextLen < 1)
{
DocScrollUpdate();
return false;
Expand Down

0 comments on commit 1134801

Please sign in to comment.