<p dir="auto">Downloaded from <code class="notranslate">https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.7.0-DEV.4543
Commit 00ac33a3ef* (2018-03-12 04:07 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)"><pre class="notranslate"><code class="notranslate">Julia Version 0.7.0-DEV.4543
Commit 00ac33a3ef* (2018-03-12 04:07 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
</code></pre></div>
<p dir="auto">When the cursor is moved on the terminal window (REPL), the cursor disappears until left or right keys are not pressed.  Editing a line becomes thus very difficult.</p>
<p dir="auto">Behavior on 0.6.2 is fine.</p>
<p dir="auto">Wikipedia describes the wanted behavior nicely <code class="notranslate">https://en.wikipedia.org/wiki/Cursor_(user_interface)</code></p>
<blockquote>
<p dir="auto">The blinking of the text cursor is usually temporarily suspended when it is being moved; otherwise, the cursor may change position when it is not visible, making its location difficult to follow.</p>
</blockquote>
<h2 dir="auto">System &amp; Version</h2>
<p dir="auto"><code class="notranslate">uname</code>:</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Arch Linux 4.19.91-lts x86_64 GNU/Linux"><pre class="notranslate"><span class="pl-c1">Arch Linux 4.19.91-lts x86_64 GNU/Linux</span></pre></div>
<p dir="auto"><code class="notranslate">versioninfo()</code>:</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)"><pre class="notranslate"><span class="pl-c1">Julia Version 1.4.1</span>
<span class="pl-c1">Commit 381693d3df* (2020-04-14 17:20 UTC)</span>
<span class="pl-c1">Platform Info:</span>
<span class="pl-c1">  OS: Linux (x86_64-pc-linux-gnu)</span>
<span class="pl-c1">  CPU: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz</span>
<span class="pl-c1">  WORD_SIZE: 64</span>
<span class="pl-c1">  LIBM: libopenlibm</span>
<span class="pl-c1">  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)</span></pre></div>
<h2 dir="auto">Bug</h2>
<p dir="auto">When I try to apply <code class="notranslate">^</code> to a string <strong>more than one character long</strong> with an unsigned integer with value <code class="notranslate">0</code> (when trying to duplicate the string n (zero) times), it segfaults.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; &quot;xx&quot; ^ Int(0)    # works
&quot;&quot;
julia&gt; &quot;xx&quot; ^ UInt(2)   # works
&quot;xxxx&quot;
julia&gt; &quot;x&quot; ^ UInt(0)    # works
&quot;&quot;
julia&gt; &quot;xx&quot; ^ UInt(0)   # segfaults

signal (11): Segmentation fault
in expression starting at REPL[3]:0
unknown function (ip: 0x7f7df8c8d369)
unknown function (ip: 0x7f7df8eb8b0a)
unknown function (ip: 0x7f7df8eb8ef4)
unknown function (ip: 0x7f7e05c9b439)
unknown function (ip: (nil))
Allocations: 962253 (Pool: 961928; Big: 325); GC: 1
[1]    96359 segmentation fault (core dumped)  julia

# Expected:
&quot;&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">"</span>xx<span class="pl-pds">"</span></span> <span class="pl-k">^</span> <span class="pl-c1">Int</span>(<span class="pl-c1">0</span>)    <span class="pl-c"><span class="pl-c">#</span> works</span>
<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
julia<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">"</span>xx<span class="pl-pds">"</span></span> <span class="pl-k">^</span> <span class="pl-c1">UInt</span>(<span class="pl-c1">2</span>)   <span class="pl-c"><span class="pl-c">#</span> works</span>
<span class="pl-s"><span class="pl-pds">"</span>xxxx<span class="pl-pds">"</span></span>
julia<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">"</span>x<span class="pl-pds">"</span></span> <span class="pl-k">^</span> <span class="pl-c1">UInt</span>(<span class="pl-c1">0</span>)    <span class="pl-c"><span class="pl-c">#</span> works</span>
<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
julia<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">"</span>xx<span class="pl-pds">"</span></span> <span class="pl-k">^</span> <span class="pl-c1">UInt</span>(<span class="pl-c1">0</span>)   <span class="pl-c"><span class="pl-c">#</span> segfaults</span>

signal (<span class="pl-c1">11</span>)<span class="pl-k">:</span> Segmentation fault
in expression starting at REPL[<span class="pl-c1">3</span>]<span class="pl-k">:</span><span class="pl-c1">0</span>
unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f7df8c8d369</span>)
unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f7df8eb8b0a</span>)
unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f7df8eb8ef4</span>)
unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> <span class="pl-c1">0x7f7e05c9b439</span>)
unknown <span class="pl-k">function</span> (ip<span class="pl-k">:</span> (nil))
Allocations<span class="pl-k">:</span> <span class="pl-c1">962253</span> (Pool<span class="pl-k">:</span> <span class="pl-c1">961928</span>; Big<span class="pl-k">:</span> <span class="pl-c1">325</span>); GC<span class="pl-k">:</span> <span class="pl-c1">1</span>
[<span class="pl-c1">1</span>]    <span class="pl-c1">96359</span> segmentation fault (core dumped)  julia

<span class="pl-c"><span class="pl-c">#</span> Expected:</span>
<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span></pre></div>