aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2016-01-01 19:47:05 +0100
committerJosé Valim <[email protected]>2016-01-01 19:47:05 +0100
commita6b630bc64ba2dc3661260b8951cc7bb316910f8 (patch)
treec3bc14f6bd57c331ef580b139cfb84c020812ac5 /lib/stdlib
parent1237669f7c59714f0c27d3df748241dfd655c0be (diff)
downloadotp-a6b630bc64ba2dc3661260b8951cc7bb316910f8.tar.gz
otp-a6b630bc64ba2dc3661260b8951cc7bb316910f8.tar.bz2
otp-a6b630bc64ba2dc3661260b8951cc7bb316910f8.zip
Do not consider "." part of names in edlin
Today, if you press Ctrl+W inside erl, it will erase word chars including dots. This may have made sense in the past when Erlang had packages, but today considering the most common case for dots inside erl is to work with records, considering the dot part of the word is rather a mistake. For example, imagine the following code, where [] is the cursor: 1> S#elixir_scope.name[] When I press Ctrl+W it erases all up to #: 1> S#[] This patch changes it to the dot is no longer considered part of the name: 1> S#elixir_scope.[] Which is rather expected behaviour for most use cases of dot in Erlang.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/edlin.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/stdlib/src/edlin.erl b/lib/stdlib/src/edlin.erl
index 19444c0502..0e9c457de2 100644
--- a/lib/stdlib/src/edlin.erl
+++ b/lib/stdlib/src/edlin.erl
@@ -465,7 +465,6 @@ word_char(C) when C >= $a, C =< $z -> true;
word_char(C) when C >= $ß, C =< $ÿ, C =/= $÷ -> true;
word_char(C) when C >= $0, C =< $9 -> true;
word_char(C) when C =:= $_ -> true;
-word_char(C) when C =:= $. -> true; % accept dot-separated names
word_char(_) -> false.
%% over_white(Chars, InitialStack, InitialCount) ->