diff options
| author | Newton <newtonallen3@users.noreply.github.com> | 2020-05-13 08:58:33 -0700 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-05-15 23:08:33 +0200 |
| commit | a432db8ca3300666bf3f3737a91dfc55d9429492 (patch) | |
| tree | c2ecb142eafd55f433a267f00df87a7b1969528e /src | |
| parent | 7f7e0e4ea1cdf52e0d5f2858baa976bd391e973a (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))
^
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Buffer.cxx | 2 |
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) */ |
