Skip to content

Commit

Permalink
Reenable support for surrounding text
Browse files Browse the repository at this point in the history
  • Loading branch information
lewtds committed Apr 8, 2015
1 parent 06678ca commit 7cb2d33
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,15 @@ public class BogoIMContext : Gtk.IMContext {

debug(@"delete($count)");

delete_with_backspace(count);
// if (is_app_blacklisted()) {
// delete_with_backspace(count);
// } else {
// var deleted = delete_surrounding(-(int) count, (int) count);
// if (!deleted) {
// debug("delete_surrounding() failed.");
// delete_with_backspace(count);
// }
// }
if (is_app_blacklisted()) {
delete_with_backspace(count);
} else {
var deleted = delete_surrounding(-(int) count, (int) count);
if (!deleted) {
debug("delete_surrounding() failed.");
delete_with_backspace(count);
}
}
}

private void delete_with_backspace(uint count) {
Expand Down

0 comments on commit 7cb2d33

Please sign in to comment.