Skip to content

Commit

Permalink
Don't allow inputHistoryReset to edit windows that aren't input windo…
Browse files Browse the repository at this point in the history
…ws. Fixes issue #503.
  • Loading branch information
talvo committed Apr 7, 2020
1 parent 5973f66 commit d9f436e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions potato.vfs/lib/potato.tcl
Expand Up @@ -12618,6 +12618,9 @@ proc ::potato::inputHistoryReset {{win ""}} {
if { $win eq "" } {
set win [focus -displayof .]
}
if { "PotatoInput" ni [bindtags $win] } {
return;
}
if { ![info exists inputSwap($win,conn)] } {
$win delete 1.0 end
return;
Expand Down

0 comments on commit d9f436e

Please sign in to comment.