summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNewton <newtonallen3@users.noreply.github.com>2020-05-13 08:58:33 -0700
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-05-15 23:08:33 +0200
commita432db8ca3300666bf3f3737a91dfc55d9429492 (patch)
treec2ecb142eafd55f433a267f00df87a7b1969528e
parent7f7e0e4ea1cdf52e0d5f2858baa976bd391e973a (diff)
Fix "misleading indentation" in Fl_Text_Buffer.cxx
Compiling with clang produced the following warning on this line: src/Fl_Text_Buffer.cxx:1292:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] replace(start, end, text); ^ src/Fl_Text_Buffer.cxx:1288:3: note: previous statement is here if (!sel->position(&start, &end)) ^
-rw-r--r--src/Fl_Text_Buffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index 8df527b1b..4cfa5e470 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1373,7 +1373,7 @@ void Fl_Text_Buffer::replace_selection_(Fl_Text_Selection * sel,
return;
/* Do the appropriate type of replace */
- replace(start, end, text);
+ replace(start, end, text);
/* Unselect (happens automatically in BufReplace, but BufReplaceRect
can't detect when the contents of a selection goes away) */