mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
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))
^
This commit is contained in:
committed by
Albrecht Schlosser
parent
7f7e0e4ea1
commit
a432db8ca3
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user