From 11348019775b643c851ab7ef829b538d3d42cd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=BCng?= Date: Mon, 15 Jan 2024 21:01:18 +0100 Subject: [PATCH] Allow single-char finds --- src/Commands/CmdFindReplace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/CmdFindReplace.cpp b/src/Commands/CmdFindReplace.cpp index ae7d1818..811940b7 100644 --- a/src/Commands/CmdFindReplace.cpp +++ b/src/Commands/CmdFindReplace.cpp @@ -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 @@ -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; @@ -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;