aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-10-14 15:44:55 +0200
committerPierre-Marie Pédrot2019-10-14 15:44:55 +0200
commit2169cf83775a57f48fe1b55796b5bc026a11aea6 (patch)
treed1a234a1b66578b3ac591caae70ba7987df65027 /ide
parent81216e8947fb4906f5a2b109cbed3e2584383c57 (diff)
parent63a2894dfbcf0362e67c971ab233487f5e0f6227 (diff)
Merge PR #10852: Fix #10842: incorrect handling of unicode input before space
Reviewed-by: Zimmi48 Reviewed-by: ppedrot
Diffstat (limited to 'ide')
-rw-r--r--ide/wg_ScriptView.ml4
1 files changed, 1 insertions, 3 deletions
diff --git a/ide/wg_ScriptView.ml b/ide/wg_ScriptView.ml
index 279815d671..181418d3d8 100644
--- a/ide/wg_ScriptView.ml
+++ b/ide/wg_ScriptView.ml
@@ -408,10 +408,8 @@ object (self)
| _ -> ()
method apply_unicode_binding () =
- (* Auxiliary method to reach the beginning of line or the
- nearest space before the iterator. *)
let rec get_line_start iter =
- if iter#starts_line || Glib.Unichar.isspace iter#char then iter
+ if iter#starts_line then iter
else get_line_start iter#backward_char
in
(* Main action *)