- text += (c.type == Change::INSERTED) ? qt_("Inserted on %1\n").arg(date)
- : qt_("Deleted on %1\n").arg(date);
+ text += inserted ? qt_("Inserted on %1").arg(date)
+ : qt_("Deleted on %1").arg(date);
+ }
+ QString changedcontent = toqstr(bufferview()->cursor().selectionAsString(false));
+ if (!changedcontent.isEmpty()) {
+ text += ":<br><br><b>";
+ if (inserted)
+ text += "<u><span style=\"color:blue\">";
+ else
+ text += "<s><span style=\"color:red\">";
+ text += changedcontent;
+ if (inserted)
+ text += "</u></span></b>";
+ else
+ text += "</s></span></b>";