diff --git a/doc/docs.md b/doc/docs.md index b77f92f3217d8d..5077446d068550 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -6215,7 +6215,7 @@ example.v:3 vdbg> You can also see memory usage with `mem` or `memory` command, and check if the current context is an anon function (`anon?`), a method (`method?`) -or a generic method (`generic?`). +or a generic method (`generic?`) and clear the terminal window (`clear`). ## Memory-unsafe code diff --git a/vlib/v/debug/debug.v b/vlib/v/debug/debug.v index 29d0e3ac00ed41..31a677b56ae042 100644 --- a/vlib/v/debug/debug.v +++ b/vlib/v/debug/debug.v @@ -24,6 +24,7 @@ mut: completion_list: [ 'anon?', 'bt', + 'clear', 'continue', 'generic?', 'heap', @@ -38,7 +39,6 @@ mut: 'scope', 'unwatch', 'watch', - 'clear', ] } } @@ -119,7 +119,7 @@ fn (mut d Debugger) print_help() { println(' scope\t\t\tshow the vars in the current scope') println(' u, unwatch \tunwatches a variable') println(' w, watch \twatches a variable') - println(' clear\tClears the terminal window.') + println(' clear\t\t\tclears the terminal window') flush_println('') }